Introduction to ES0en. NET HTML Server controls Overview
- 2020-12-18 01:47:37
- OfStack
HTML server controls in ES1en. NET are HTML tags that the server can understand.
HTML elements in ASP.NET files are processed as text by default. To make these elements programmable, you need to add the runat="server" attribute to the HTML element. This property indicates that the element should be handled as a server control.
Note:
1. All HTML server controls must be in a tag with the attribute runat="server"!
ASP.NET requires that all HTML elements be closed and nested correctly.
HTML server space and related descriptions are shown in the following table:
HTML 服务器控件 | 描述 |
---|---|
HtmlAnchor | 控制 <a> HTML 元素 |
HtmlButton | 控制 <button> HTML 元素 |
HtmlForm | 控制 <form> HTML 元素 |
HtmlGeneric | 控制其他未被具体的 HTML 服务器控件规定的 HTML 元素,比如 <body>, <div>, <span> 等等。 |
HtmlImage | 控制 <image> HTML 元素 |
HtmlInputButton | 控制 <input type="button"> 、<input type="submit"> 以及 <input type="reset"> HTML 元素 |
HtmlInputCheckBox | 控制 <input type="checkbox"> HTML 元素 |
HtmlInputFile | 控制 <input type="file"> HTML 元素 |
HtmlInputHidden | 控制 <input type="hidden"> HTML 元素 |
HtmlInputImage | 控制 <input type="image"> HTML 元素 |
HtmlInputRadioButton | 控制 <input type="radio"> HTML 元素 |
HtmlInputText | 控制 <input type="text"> 和 <input type="password"> HTML 元素 |
HtmlSelect | 控制 <select> HTML 元素 |
HtmlTable | 控制 <table> HTML 元素 |
HtmlTableCell | 控制 <td> 和 <th> HTML 元素 |
HtmlTableRow | 控制 <tr> HTML 元素 |
HtmlTextArea | 控制 <textarea> HTML 元素 |