ASP.NET Enabled property
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>
<body>
<form runat="server">
<asp:Button id="Button2" Enabled=False Text="Submit" runat="server"/>
</form>
</body>
</html>
The demonstration >>
Web Control Standard Properties Reference