ASP.NET EnabledPropiedad


Web 控件标准属性参考手册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>

Probar ejemplo »

Web 控件标准属性参考手册Manual de referencia de propiedades estándar de controles Web Otras extensiones