Hide user control

  • Thread starter Thread starter kmercer46
  • Start date Start date
K

kmercer46

I need to hide the user control by checking a small if condition.If
the condition is false then then the user control is set TRUE,else It
should be FALSE.How can i do it in the ASP.NET with VB.NET .

Thank you
 
The UserControl class has a Visible property that should show/hide then
entire control. If that doesn't work the next easiest thing would be
to wrap your control around a Panel and change its visibility. Of
course you should probably make that part of your control to ease use
and consistent behavior.
 

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