WebControlAdapter.IsEnabled Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value indicating whether the Web control and all its parent controls are enabled.

Namespace:   System.Web.UI.WebControls.Adapters
Assembly:  System.Web (in System.Web.dll)

protected bool IsEnabled { get; }

Property Value

Type: System.Boolean

true if the associated WebControl and all its parent controls are enabled; otherwise, false.

The IsEnabled property provides access for the adapter and any of its derived classes to the WebControl.IsEnabled property. WebControl.IsEnabled scans the hierarchy of parent controls and returns true only if the Web control and all its parents are enabled.

.NET Framework
Available since 2.0
Return to top