Slide 13.7: HTML server controls (cont.)
Slide 13.9: Web server controls
Home

HTML Server Controls (Cont.)


HTML server controls are HTML tags understood by the server. 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 that
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.