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.
 

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