User Control Question

awdigrigoli

Member
Joined
Mar 30, 2005
Messages
12
Programming Experience
5-10
I have a an HTML Button that I have set runat=server. I added this to a user control where this is the only control. I need this button to be visible in some cases and invisible in others. How can I add this to the user control so that I can set the visibility from the parent forms code behind?


Thank you ,
Anthony
 

awdigrigoli

Member
Joined
Mar 30, 2005
Messages
12
Programming Experience
5-10
Thanks anyway, but I figured it out. I added a public routine to my user control that is passed a boolean. I then use that boolean to set the visibility of my html Button control.
 
Top Bottom