Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

ASP.NET HTML server controls


May 12, 2021 ASP.NET


Table of contents


ASP.NET Web Forms - HTML server controls

This section introduces you to ASP.NET html server controls in .

HTML server controls are HTML tags that the server understands.


HTML server controls

ASP.NET html elements in the file, which are processed as text by default. F or these elements to be programmable, add the runat"server" property to the HTML elements. This property indicates that the element will be processed as a server control.

Note: All HTML server controls must be located within the label with the runat"server" property!

Note: ASP.NET requires that all HTML elements must be properly closed and nested correctly.

HTML server control describe
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 元素

Related tutorials

HTML reference manual