Click here to Skip to main content
Click here to Skip to main content

Disable Child Controls Recursively

public void ControlStatus(Control control, bool isDisable){ foreach (Control c in control.Controls) if (c.HasControls()) ControlStatus(c, isDisable); else { WebControl w = c as WebControl; if (wc != null) ...
This is an old version of the currently published tip/trick.

This article is still being written and is not currently available for general viewing.

Please go to the Programming Tips Table of Contents to view the list of available articles in this section.
| Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 2 Nov 2010
Article Copyright 2010 by jarvisa
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid