ASP. NET getting started Tutorial: HTML server controls

Source: Internet
Author: User

After briefly introducing ASP. NET 2.0, we will briefly introduce some HTML server controls. Previous Article: ASP. NET getting started Tutorial: ASP. NET 2.0 navigation

The HTML server control is an HTML Tag that is understandable to the server.

HTML Server Control

HTML elements in ASP. NET files are processed as text by default. To make these elements programmable, you need to add the runat = "server" attribute to the HTML element. This attribute indicates that the element should be processed as a server control.

Note: All HTML server controls must be in

Tag!

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

HTML Server Control Description
HtmlAnchor Control <a> HTML elements
HtmlButton Control <button> HTML elements
HtmlForm Control <form> HTML elements
HtmlGeneric Controls other HTML elements not specified by specific HTML server controls, such as <body>, <div>, and <span>.
HtmlImage Control <image> HTML elements
HtmlInputButton Control <input type = "button">, <input type = "submit">, and <input type = "reset"> HTML elements
HtmlInputCheckBox Control <input type = "checkbox"> HTML elements
HtmlInputFile Control <input type = "file"> HTML elements
HtmlInputHidden Control <input type = "hidden"> HTML elements
HtmlInputImage Control <input type = "image"> HTML elements
HtmlInputRadioButton Control <input type = "radio"> HTML elements
HtmlInputText Control <input type = "text"> and <input type = "password"> HTML elements
HtmlSelect Control <select> HTML elements
HtmlTable Control <table> HTML elements
HtmlTableCell Control <td> and <th> HTML elements
HtmlTableRow Control <tr> HTML elements
HtmlTextArea Control <textarea> HTML elements

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.