Chapter 21. DHTML-Based Server Controls


DHTML capabilities of modern Web browsers such as Microsoft Internet Explorer 4 and later enable page developers and designers to create visually appealing, interactive, and intuitive user interfaces (UIs) in their Web applications. At the same time, most Web applications need to target the widest possible audience, which implies that they should be able to support Web browsers with little or no DHTML capabilities. Server controls allow you to address this scenario by encapsulating the logic to target multiple Web browsers into reusable components . Page developers can easily reuse these controls to create Web applications that optimize user experience based on the capabilities offered by the user's Web browser. The validation controls in ASP.NET are an example of server controls that use DHTML and client-side JavaScript for client-side validation. These controls gracefully degrade to server-side validation if a Web browser does not provide the necessary client-side capabilities.

In this chapter, we will describe a DatePicker control that is DHTML-enabled and encapsulates logic for targeting multiple Web browsers.



Developing Microsoft ASP. NET Server Controls and Components
Developing Microsoft ASP.NET Server Controls and Components (Pro-Developer)
ISBN: 0735615829
EAN: 2147483647
Year: 2005
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net