ASP.NET EnabledPropiedad
Manual de referencia de propiedades estándar de controles Web
Definición y uso
La propiedad Enabled se utiliza para habilitar o deshabilitar un control.
Sintaxis
<asp:webcontrol id="id" Enabled=true|false runat="server" />
Ejemplo
El siguiente ejemplo deshabilita un control Button:
<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>
Probar ejemplo »
Manual de referencia de propiedades estándar de controles Web Otras extensiones