How to hide ASP:Panel

  • Thread starter Thread starter GW
  • Start date Start date
G

GW

Hello,

I have:

Default.aspx
and
Default.aspx.cs

I also have on my Default.aspx page the following:

<asp:panel ID="MyPanel" runat="server"></panel>

How would I programmatically show / hide this element from the CS file?

Any tips appreciated,

Gary.
 
This really should be posted to the ASP.NET group, its not really a C#
language question.
You can programmatically set the Visible property of the Panel (True / False).
Peter
 
Back
Top