HtmlControl.Disabled Property
.NET Framework 3.0
Gets or sets a value indicating whether the HTML server control is disabled.
Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
[TypeConverterAttribute(typeof(MinimizableAttributeTypeConverter))] public: property bool Disabled { bool get (); void set (bool value); }
/** @property */ public boolean get_Disabled () /** @property */ public void set_Disabled (boolean value)
public function get Disabled () : boolean public function set Disabled (value : boolean)
Not applicable.
Property Value
true if the control is disabled; otherwise, false. The default value is false.The following code example demonstrates how to use the Disabled property to programmatically enable and disable an HtmlInputButton control.
Community Additions
ADD
Show: