Recursively enables or disables all child WebControls within the specified parent control.
Namespace:
AdvantageCMS.Core.Admin.BaseClasses
Assembly:
AdvantageCMS.Core (in AdvantageCMS.Core.dll)
protected void EnableControls(
bool enabled,
Control thisControl
)
Parameters
- enabled
- Type: Boolean
If true, enables all child controls; if false, disables them.
- thisControl
- Type: Control
The parent control whose children will be enabled or disabled.
Call from within a tool control to lock or unlock a panel of form fields.
C#
EnableControls(false, pnlDetails);
EnableControls(true, pnlDetails);