ASP.NET Tutoria...login
ASP.NET Tutorial
author:php.cn  update time:2022-04-11 14:18:18

Web Forms HTML


ASP.NET Web Forms - HTML Server Controls


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


HTML Server Control

HTML elements in ASP.NET files are processed as text by default. 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 the <form> tag with the runat="server" attribute!

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

##HtmlAnchorControl<a> HTML ElementHtmlButtonControl<button> HTML ElementHtmlFormControl<form> ; HTML element HtmlGeneric controls other HTML elements that are not specified by specific HTML server controls, such as <body>, <div>, <span> ; wait. HtmlImageControl<image> HTML elementHtmlInputButtonControl<input type ="button">、<input type="submit"> and <input type="reset"> HTML elementsHtmlInputCheckBoxControl<input type="checkbox"> HTML elementHtmlInputFileControl <input type="file"> HTML elementHtmlInputHiddenControl<input type="hidden"> HTML elementHtmlInputImageControl<input type="image"> HTML elementHtmlInputRadioButtonControl<input type="radio"> HTML elementHtmlInputTextControl <input type="text"> and <input type="password"> HTML elementHtmlSelectControl<select> HTML elementHtmlTableControl the <table> HTML elementHtmlTableCellControl the <td> and <th> HTML elementsHtmlTableRowControl<tr> HTML elementHtmlTextAreaControl<textarea> HTML element
HTML Server ControlDescription