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

Disable Child Controls Recursively

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
13 Nov 2010CPOL 6.2K   3  
public void ControlStatus(Control control, bool isDisable){ foreach (Control c in control.Controls) if (c.HasControls()) ControlStatus(c, isDisable); else { WebControl wc = c as WebControl; if (wc != null) ...

Views

Daily Counts

License

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


Written By
Retired
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions