ASP. NET is a basic component of the ASP. NET architecture. In essence, ASP. NET is. NET
Class in the Framework. You can map the control Declaration on the ASP. NET page. Then, based on their
Property to create HTML for the control. Because the class object is compiled together with the page during running time
Developers can access those objects in an object-oriented manner, such as reading and modifying their attributes and calling them.
Methods and server-side events. In traditional ASP Programming, the VBScript code of the server
It is mixed with HTML tags and is easy to cause confusion. In ASP. NET programming
Attackers can access objects in an object-oriented way, so they can create code with better structure and readability.
1. Server controls in ASP. NET
ASP. NET provides many different server controls. They can be divided into the following types:
<1> HTML Server Controls (HTML Server Control ):
These controls are classes that contain standard HTML tags and are declared by the runat = "server" attribute.
Except for the runat = "server" attribute, other declarations of the control remain unchanged. However, by representing the control object,
You can access, read, and modify control attributes in code. For example
The three tags are <a>, <select>, and <input>.
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