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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top