Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
Assign an attribute to all my web controls
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="JezB, post: 4292978"] Something like : private void ParseControls (Control c) { // do something to the control, (but not the whole Page?) if (!(c is Page)) c.Enabled = false; // Now loop through any child controls (but not for populated datagrids) if (c.HasControls()) { foreach (Control ch in c.Controls) { ParseControls(ch); } } } then just call it and pass it your Page. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
Assign an attribute to all my web controls
Top