Create a custom Web control with ASP.net 2.0

Source: Internet
Author: User
WEB Development has undergone a lengthy process from the use of basic text editors to authoring markup pages. Currently, the Integrated development Environment (IDE) provides a graphical representation of almost every aspect of the development process. In addition, a variety of descriptive programming techniques are implemented to improve efficiency and reduce the likelihood of errors. The control architectures in Visual Studio 2005 and ASP.net 2.0 follow these programming trends and provide a reliable, extensible 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 specifically identify their target browsers. In other words, a control developer can focus on designing controls, and let the asp.net framework be responsible for converting controls and rendering them for different types of browsers and devices.
Although ASP.net 2.0 provides incremental improvements in the control design process, the actual control rendering model has been completely changed. As a custom control developer, you'll see several new options for leveraging asp.net. Most importantly, you'll find that you can accomplish the same task by writing fewer code.
In asp.net 2.0, there are many ways to create a custom server control, each of which has its advantages and limitations. This article discusses details related to the creation and configuration of custom controls. Code samples and architectural concepts require you to have a moderate level of 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 recognize different browser types and emit the correct output. The ASP.net 1.x control framework provides several features to make this task simpler, but developers must still write switches based on the type of browser, develop the appropriate HTML, and then test the controls for different types of browsers. Additionally, if the developer wants the control to appear on the mobile device, he must create a new control that is different from the one used on the normal Web browser.
ASP.net 2.0 simplifies the browser detection and rendering process through the new adaptive rendering model. The adaptive rendering model introduced in ASP.net 2.0 is designed to support many different devices that can use tag formats, including HTML, WML, XHTML, or CHMTL.
Adaptive Rendering Model architecture

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.