.NET Framework Class Library
Label.SupportsDisabledAttribute Property
Gets a value that indicates whether the control should set the disabled attribute of the rendered HTML element to "disabled" when the control's IsEnabled property is false.
Assembly: System.Web (in System.Web.dll)
Syntax
Visual Basic
Public Overrides ReadOnly Property SupportsDisabledAttribute As Boolean
C#
public override bool SupportsDisabledAttribute { get; }
Visual C++
public: virtual property bool SupportsDisabledAttribute { bool get () override; }
F#
abstract SupportsDisabledAttribute : bool override SupportsDisabledAttribute : bool
Property Value
Type: System.Booleantrue if the Control.RenderingCompatibility property indicates an ASP.NET version lower than 4.0; otherwise, false.
Remarks
This property indicates how ASP.NET should render HTML for a control when the control is disabled. If this property is true, ASP.NET renders a disabled attribute when a control is disabled. If this property is false, ASP.NET renders a class attribute when a control is disabled. For more information, see WebControl.SupportsDisabledAttribute.
Version Information
.NET Framework
Supported in: 4Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also