Write less code for server-side HTML control
Author: qingapple Computer Studio
ASP provides the opportunity to run components on the server. These components generate the page that is returned to the user. ASP + pass
Server Control extends this concept. All you need to do to convert any HTML element into server control is to add an additional
Attribute: runat = "server ".
Any HTML element on a page can be marked using this method. Then ASP + processes these elements on the server, and then
Generate outputs suitable for this specific server. In addition, as a by-product, we can also create an additional trick to use
The code for creating a FORM associated with HTML <FORM> and control elements maintains the status during the round-trip to the server. This enables programming
The process is not so monotonous and more creative.
The concept of executing HTML elements on the server may seem a bit strange at the beginning, and you will find that it adds a complete
At the same time, it is easier to write. What else will a programmer ask?
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