Click here to Skip to main content
15,900,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
HI
I have a webform like:

XML
<asp:Panel ID="pnlLbl" runat ="server" Visible ="false" >
     <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
         <asp:ListItem>Yes</asp:ListItem>
         <asp:ListItem>No</asp:ListItem>
     </asp:RadioButtonList>

     <asp:RadioButtonList ID="RadioButtonList2" runat="server" RepeatDirection="Horizontal">
         <asp:ListItem>Yes</asp:ListItem>
         <asp:ListItem>No</asp:ListItem>
     </asp:RadioButtonList></asp:Panel>
      <br /><asp:Button ID="Button1" runat ="server" Text="submit" />


Now I have to return false value if pnlLbl=visible and if none of the radiobuttonlist is selected, through javascript.

Please suggest.
Posted

1 solution

see this article..it may be helpful to u
Link Here
 
Share this answer
 
Comments
ujju.1 4-Apr-14 4:01am    
Thanx Shiva. Its working fine. But what about the panel? How would I validate if Panel is visible or not?
Siva Hyderabad 4-Apr-14 4:57am    
panel property visible true or false using java script
http://stackoverflow.com/questions/16635285/setting-a-panel-to-visible-using-javascript

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900