??? Alter V
iewState management.
??? Alter how postback data is processed.
Refer to the ASP.NET documentation for details on how to take advantage of the adapter
control framework in general. In the next section, we focus on building control adapters.
Control Adapters
The adaptive control behavior framework allows the control developer to substitute custom
rendering behavior at key life cycle stages of a server control, without actually modifying or
inheriting from the target control. A single instance of the control adapter is mapped into a
page to modify behavior of all server control instances of the target server control type.
What happens is that when a page request is made, the ASP.NET page processing pipeline
checks to see if there is an associated adapter for a control in the page??™s control tree and calls
the adapter??™s associated method, instead of the target control??™s method. So, instead of calling the
control??™s Render method, the control adapter??™s Render method is called instead. Quite often,
the control adapter will refer to the control??™s version of the method, so it is not necessary to
reimplement every bit of a control??™s functionality in the control adapter, which is one of the
reasons why this architecture is so appealing.
Pages:
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612