CompositeControl.SupportsDisabledAttribute Property

Definition

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.

C#
public override bool SupportsDisabledAttribute { get; }

Property Value

true if the 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.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also