Use ASP. NET 2.0 to create custom Web controls

Source: Internet
Author: User

From using a basic text editor to creating a tag page, Web development has gone through a long process. Currently, the integrated development environment (IDE) provides graphical representation for almost every aspect of the development process. In addition, descriptive programming techniques are implemented to improve efficiency and reduce the chance of errors. Visual Studio 2005 and ASP. the control architecture in NET 2.0 follows these programming trends and provides a reliable and scalable environment designed to allow developers to create controls that can be configured in a descriptive manner.
In addition, the new adaptive rendering model in ASP. NET reduces the need to write controls that can specifically identify the target browser. In other words, control developers can focus on designing controls, while ASP. NET Framework converts controls and presents them for different types of browsers and devices.
Although ASP. NET 2.0 provides the incremental improvement feature during the control design process, the actual control rendering model has been completely changed. As a custom control developer, you will see several new options using ASP. NET. Most importantly, you will find that you can complete the same task by writing less code.
In ASP. NET 2.0, there are many methods for creating custom server controls. Each method has its advantages and limitations. This article describes how to create and configure custom controls. Code examples and architecture concepts require a moderate understanding of the C # programming language.
Adaptive rendering Model
In ASP. NET 1.x, custom control developers must design each server control so that it can identify different browser types and generate correct output. ASP. the NET 1.x control framework provides several functions to make the task easier. However, developers must write the switching program based on the browser type and develop the appropriate HTML, then test the controls for different types of browsers. In addition, if a developer wants to display a widget on a mobile device, he must create a new control that is different from the one used on a common Web browser.
ASP. NET 2.0 simplifies browser detection and rendering through a new adaptive rendering model. The adaptive rendering model introduced in ASP. NET 2.0 is designed to support various devices that can use tag formats (including HTML, WML, XHTML, or CHMTL.
Adaptive Presentation Model Architecture

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.