Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Get all the server controls in the form

Reply
Thread Tools

Get all the server controls in the form

 
 
Grey
Guest
Posts: n/a
 
      06-01-2004
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
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      06-01-2004
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
"Grey" <> wrote in message news:...
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot Nathan Sokalski ASP .Net 4 09-05-2007 03:27 AM
get all the form fields in a form Mr. SweatyFinger ASP .Net 20 01-31-2007 08:24 AM
basic: asp.net user controls: how to programmatically add attribute to all text box controls? ASP .Net 4 11-09-2005 02:14 AM
Difference in Web server Controls and HTML Server Controls =?Utf-8?B?c2lhag==?= ASP .Net 7 03-07-2005 07:15 PM
HTML Server Controls vs Web Server Controls brian ASP .Net Web Controls 1 01-24-2005 05:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57