Los controles ASP.NET HtmlInputButton
Definición y Uso
HtmlInputButton de control para controlar el <tipo "botón" de entrada =>, <input type = "submit"> y <input type = "reset"> elemento. En HTML, estos elementos se utilizan para crear un botón de comando, botón y un botón de reinicio presentar.
propiedad
属性 | 描述 |
---|---|
Attributes | 返回该元素的所有属性名称和值对。 |
Disabled | 布尔值,指示是否禁用该控件。默认是 false。 |
id | 元素的唯一 id。 |
Name | 元素的名称。 |
OnServerClick | 当该按钮被点击时被执行的函数的名称。 |
runat | 规定该控件是一个服务器控件。必须被设置为 "server"。 |
Style | 设置或返回被应用到控件的 CSS 属性。 |
TagName | 返回元素的标签名。 |
Type | 元素的类型。 |
Value | 元素的值。 |
Visible | 布尔值,指示该控件是否可见。 |
Ejemplos
HTMLInputbutton
En este ejemplo, declaramos un control HtmlInputText en un archivo .aspx, un control HtmlInputButton, y un control HtmlGeneric (recuerde que debe controlar el control HtmlForm anidada). Cuando se activa el botón de enviar, enviar la subrutina. La subrutina presentar escribirá a los p elementos de un mensaje de bienvenida.
Los controles de servidor HTML