Get all the server controls in the form

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
 
E

Eliyahu Goldin

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
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top