Prev | Current Page 599 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

NET Framework 2.0
and later to provide web developers the ability to modify the HTML output of the built-in
server controls.
For mobile web development, the ASP.NET mobile controls live on in the .NET Framework
3.5, which we cover later in this chapter. However, first we provide an overview of the
adaptive behavior framework including steps to build a custom control adapter in the next section.
Nonmobile Adaptive Behavior
Starting in .NET Framework 2.0, ASP.NET includes the ability to change rendering for a web
server control such as the built-in TreeView server control. The adaptive rendering functionality
provides for multiple ways to modify control behavior:
??? Use declarative device markup or browser filtering to affect how control properties are
set based on device filter definitions.
??? Configure a web application to render multiple markups depending on the browser device.
??? Create a custom TextWriter class to render output.
??? Use the XhtmlTextWriter or ChtmlTextWriter classes to customize control tags
and attributes.
??? Develop a custom control adapter that substitutes an adapter life cycle method for the
default life cycle method for an existing server control.
478 CHAPTER 10 ?–  OTHER SERVER CONTROLS
In addition to controlling rendering, server control behavior can be modified for a target
browsing device as follows:
??? Prevent a custom control from being adapted, which may be desirable for server control
developers.


Pages:
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611