ASP.NET AJAX includes a powerful client-side script library that provides crossbrowser
compatibility, as well as a powerful client-side programming model that mimics
object-oriented behavior in JavaScript.
We covered the server-side programming model that requires implementation of the
GetScriptDescriptors and GetScriptReferences methods. We also explained how the serverside
configuration is passed to the client-side component utilizing the ScriptBehaviorDescriptor
class. Finally, we demonstrated how to implement both an ASP.NET AJAX server control by
implementing IScriptControl, as well as how to implement an extender control by inheriting
from the ExtenderControl base class.
For additional examples of ASP.NET AJAX server controls and extenders, we recommend
downloading and reviewing the ASP.NET AJAX Control Toolkit available at http://asp.net/
ajax/ajaxcontroltoolkit/samples/.
441
?– ?– ?–
C H A P T E R 1 0
Other Server Controls
Up to this chapter, we have focused on providing the necessary background to create powerful
ASP.NET server controls that support custom styling, templating, data binding, client-side
script, and ASP.NET AJAX. These development techniques and features can be put to work in
many different ways.
Pages:
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571