Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to hide the panel and its controls .
plz help me
Posted

You can hide panel and controls two way.
1) using visible=true/false property
2) using jquery

Below are the explanation with example:
1) using visible=true/false property :
XML
<asp:Panel ID="Panel1" runat="server" Visible="false">
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </asp:Panel>


2) using jquery
XML
<script type="text/javascript">
       $("#ctl00_contentdetails_pnl").hide();
   </script>
 
Share this answer
 
set the visible property as false in your panel control. it will hide panel and its all controls.
read How to Show or Hide Controls Dynamically[^] for doing the same with JQuery
 
Share this answer
 

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