Get all the server controls in the form

Discussion in 'ASP .Net' started by Grey, Jun 1, 2004.

  1. Grey

    Grey Guest

    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
     
    Grey, Jun 1, 2004
    #1
    1. Advertising

  2. 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
     
    Eliyahu Goldin, Jun 1, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?c2lhag==?=
    Replies:
    7
    Views:
    1,491
    =?Utf-8?B?c2lhag==?=
    Mar 7, 2005
  2. Guest
    Replies:
    4
    Views:
    7,173
    Steven Cheng[MSFT]
    Nov 9, 2005
  3. Mr. SweatyFinger

    get all the form fields in a form

    Mr. SweatyFinger, Jan 26, 2007, in forum: ASP .Net
    Replies:
    20
    Views:
    886
    Alexey Smirnov
    Jan 31, 2007
  4. brian

    HTML Server Controls vs Web Server Controls

    brian, Jan 21, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    311
    Steve C. Orr [MVP, MCSD]
    Jan 24, 2005
  5. SAN CAZIANO
    Replies:
    1
    Views:
    252
Loading...

Share This Page