ASP.NET Enabled Property


Web Control Standard Properties Reference Complete Web Control Standard Properties Reference

Definition and Usage

The Enabled property is used to enable or disable a control.

Syntax

<asp:webcontrol id="id" Enabled=true|false runat="server" />


Example

The following example sets the disables a button control:

<html>
<body>

<form runat="server">
<asp:Button id="Button2" Enabled=False Text="Submit" runat="server"/>
</form>

</body>
</html>

Show example »

Web Control Standard Properties Reference Complete Web Control Standard Properties Reference

Color Picker

colorpicker