ASP.NET Enabled Property
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 »
Complete Web Control Standard Properties Reference
Thank You For Helping Us!
Your message has been sent to W3Schools.
Close [X]