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