Asp. NET Getting Started Tutorial: HTML server controls

Source: Internet
Author: User
Tags html tags

After a brief introduction to ASP.net 2.0, let's briefly introduce some HTML server controls. Previous article: asp.net Getting Started Tutorial: asp.net 2.0 navigation

HTML server controls are HTML tags that the server can understand.

HTML server Control

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

Note: All HTML server controls must be in a runat= with the "server" attribute

Tags inside!

Note: asp.net requires all HTML elements to 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 that are not specified by the specific HTML server control, such as <body>, <div>, <span>, and so on.
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.