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.
HTML Server Control | Description |
---|---|
Control<a> HTML Element | |
Control<button> HTML Element | |
Control<form> ; HTML element | |
controls other HTML elements that are not specified by specific HTML server controls, such as <body>, <div>, <span> ; wait. | |
Control<image> HTML element | |
Control<input type ="button">、<input type="submit"> and <input type="reset"> HTML elements | |
Control<input type="checkbox"> HTML element | |
Control <input type="file"> HTML element | |
Control<input type="hidden"> HTML element | |
Control<input type="image"> HTML element | |
Control<input type="radio"> HTML element | |
Control <input type="text"> and <input type="password"> HTML element | |
Control<select> HTML element | |
Control the <table> HTML element | |
Control the <td> and <th> HTML elements | |
Control<tr> HTML element | |
Control<textarea> HTML element |