HTML Server Controls
HTML server controls are HTML tags understood by the server.
HTML Server Controls
HTML elements in ASP.NET files are, by default, treated as text. To make
these elements programmable, add a runat="server" attribute to the
HTML element. This
attribute indicates that the element should be treated as a server
control.
Note: All HTML server controls must be within a <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 |
| HtmlAnchor |
Controls an <a> HTML element |
| HtmlButton |
Controls a <button> HTML element |
| HtmlForm |
Controls a <form> HTML element |
| HtmlGeneric |
Controls other HTML element not specified by a specific
HTML server control, like <body>, <div>, <span>, etc. |
| HtmlImage |
Controls an <image> HTML element |
| HtmlInputButton |
Controls <input type="button">, <input
type="submit">, and <input type="reset"> HTML elements |
| HtmlInputCheckBox |
Controls an <input type="checkbox"> HTML element |
| HtmlInputFile |
Controls an <input type="file"> HTML element |
| HtmlInputHidden |
Controls an <input type="hidden"> HTML element |
| HtmlInputImage |
Controls an <input type="image"> HTML element |
| HtmlInputRadioButton |
Controls an <input type="radio"> HTML element |
| HtmlInputText |
Controls <input type="text"> and <input
type="password"> HTML elements |
| HtmlSelect |
Controls a <select> HTML element |
| HtmlTable |
Controls a <table> HTML element |
| HtmlTableCell |
Controls <td>and <th> HTML elements |
| HtmlTableRow |
Controls a <tr> HTML element |
| HtmlTextArea |
Controls a <textarea> HTML element |
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
|
|