Get all the server controls in the form

  • Thread starter Thread starter Grey
  • Start date Start date
G

Grey

Is it possible to get all the server controls in the form?? I want to set disable to all the server control in the form, but I want don't want to do that in client script for some reason. Is it possible to do that in server side? How-to??

Million thanks
 
Controls property gives you a collection of the child controls for the control. You can loop through all of them recursively starting from Page.Controls.

Eliyahu
Is it possible to get all the server controls in the form?? I want to set disable to all the server control in the form, but I want don't want to do that in client script for some reason. Is it possible to do that in server side? How-to??

Million thanks
 
Back
Top