Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET HTML Server Controls

ASP.NET Web Forms - HTML Server Controls


HTML server controls are HTML tags that can be understood by the server.


HTML Server Controls

HTML elements in an ASP.NET file are, by default, treated as text. To make these elements programmable, add the runat="server" attribute to the HTML element. This attribute indicates that the element will be treated as a server control.

**Note:** All HTML server controls must be located within a

tag!

**Note:** ASP.NET requires all HTML elements to be properly closed and properly nested.

HTML Server Controls Description
HtmlAnchor Control HTML element
HtmlButton Control
HtmlForm Control HTML elements
HtmlGeneric Controls other HTML elements not specified by a specific HTML server control, such as
、 , etc.
HtmlImage Control HTML element
HtmlInputButton Control 、 and HTML element
HtmlInputCheckBox Control HTML element
HtmlInputFile Control HTML element
HtmlInputHidden Control HTML element
HtmlInputImage Control HTML element
HtmlInputRadioButton Control HTML element
HtmlInputText Control and HTML element
HtmlSelect Control
HtmlTable Control HTML element HTML element
HtmlTableCell Control and HTML element
HtmlTableRow Control
HtmlTextArea Control <textarea> HTML element
</textarea>