Click here to Skip to main content
15,894,017 members
Articles / Web Development / ASP.NET

Disable Child Controls Recursively

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
13 Nov 2010CPOL 9.9K   2  
You can just use "not IsDisable" versus the IF...ELSE block. Additionally, the recursive call to ControlStatus should be done all the time so that the parent control is enabled/disabled along with the children. // to enable\disable the control & its child controls public...
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Self-employed, consultant to US Air Force
United States United States
Enterprise architect/senior developer/SME for electronic warfare software development at the US Air Force 350th Spectrum Warfare Wing, Eglin AFB, FL.

Comments and Discussions