In class file, you declare usercontrol like
Protected WithEvents muControl As ucControl
Then, set it false.
muControl.Visible = False
"suzy" <me@nospam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
hi,
how do i show/hide a user control depending on a condition. i can't write
an IF statement because im referencing the user control from html.
i am thinking of putting a panel control on my html instead of the
usercontrol, then adding the user control to it at runtime (depending on
condition). is this the best way?
thanks.