Be careful when you map to the onsubmit event of an HTML form. It will fire when a control
such as LinkButton uses the client-side JavaScript form submission code provided by ASP.NET.
Client callbacks are a great way to pull data or content from the server to the client without
requiring a postback or refreshing of the browser page. They also make deployment easy by
being integrated directly into the ASP.NET 2.0 or later Framework feature set.
413
?– ?– ?–
C H A P T E R 9
ASP.NET AJAX Controls
and Extenders
Up to this chapter, we have provided the necessary background to create powerful ASP.NET
server controls that support custom styling, templating, data binding, and client-side scripts.
While the existing client-side script integration is useful in ASP.NET, ASP.NET AJAX takes it to
the next level by providing a powerful client-side script library that integrates well with the serverside
programming model and design-time support that ASP.NET developers know and love.
In this chapter, we bridge the gap to client-side integration when building custom server
controls via ASP.NET AJAX. We provide an overview of ASP.NET AJAX extensibility points followed
by step-by-step examples on how to create AJAX-enabled server controls as well as ASP.
Pages:
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533