X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook