Latest web development tutorials

ASP.NET Enabled property

Web Control Standard Properties Reference Web Control Standard Properties Reference

Definition and Usage

Enabled property is used to enable or disable controls.

grammar

<asp:webcontrolid="id" Enabled=true|falserunat="server" />


Examples

The following example disables a Button control:

<html>
<body>

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

</body>
</html>

The demonstration >>

Web Control Standard Properties Reference Web Control Standard Properties Reference