ASP. NET server control features list

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

ASP. NET server control features list

In the development process of ASP or JSP, the HTML tag <input type= "text" > Renders a text input box in the browser, uses HTML tag <input type= "Radio" > Renders a radio button in the browser. But these are interpreted HTML elements in the client browser and cannot be called controls. server controls are used as page rendering elements in asp.net. ASP. NET server controls are components that run on the server side and encapsulate the user interface and other features for asp.net pages and asp.net code-behind pages.

ASP. NET Server controls:

1. Save view state: When the page is transferred back and forth between the client and server, the server control automatically saves view state, settings, and user input for the control. The traditional HTML element ignores the state of the graph and returns only its default settings when the page returns to the client from the server side.

2. Common object model; in ASP.net, server controls are based on the common object model, so they can share a large number of properties, such as setting the background color of a control, always using the same property BackColor, not the control. Anyang Talent Network

3. Data binding model: ASP.net server control greatly simplifies the creation of dynamic pages, in the process of data binding and access, for Web page developers to provide a complete control, a simple general data source model for the use of a variety of data sources to facilitate.

4. User customization: server controls provide a variety of mechanisms for Web page developers to customize their own pages. One way to provide style attributes as a custom page format, and another is to provide templates for customizing content and layout. www.0372hr.cn www.hqqrc.com

5. configuration file; Server controls configure programs at the machine level by Machine.config files or by Web.config files at the Web application level, allowing developers to control or change the behavior of the program uniformly, without recompiling or modifying the application itself.

6. Create browser-specific HTML when a browser requests a page, the server control determines which browser is requesting the page, and then sends the appropriate HTML. For example, if the requesting browser supports client script, the control can create client script to implement their functionality. However, if the requested browser does not support client script, the control creates the server code and requires more round trips from the server to get the same functionality. It also produces the corresponding HTML based on different versions of browsers. This allows you to write code for the latest browsers without having to worry about browser errors that prevent users who are not using the latest browsers. Here's one of our ASP.net server controls to explain <asp:button id= "xuebiyou.com" runat= "Server" text= "xuebiyou.com" ></asp:Button> First, the server control needs to be processed by the server to generate the corresponding HTML element, where the attribute runat= "server" means that the control logic runs on the server, not in the user's browser. Second, the meaning of the controls is that they are no longer just an element that renders a façade, but rather an object, a component that defines the Web application user interface. They all came true. NET Framework, also has attributes, events and methods, and other objects have characteristics. In the example, the property id= "Xuebiyou.com" indicates that the control is an object of the class button and the object name is xuebiyou.com Anyang Talent Network

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.