Hiding Controls in aspx page dynamically:

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all
I have been fighting to get this working.. I have a form with several text
boxes which posts back when an user fills and submits. I want to hide the
textboxes on postback and display some message based on some server rules.
Do I have to loop through each and every text box and set the visible
property to False? Or is tehre some easier way to do? Please give me some
code hint.

Thanks
V
 
You can probably wrap the related controls in a Panel or div and then set
the visibility for the single object.
 
Back
Top