Microsoft realized that the job of integrating the standard ASP.NET controls and
tedious and repetitious. So they did it for you with the
ScriptManager control, ensuring that you have access to a fully
tested, reliable control that manages the "grunt" work. Adding a
ScriptManager control to your page (which the IDE does
automatically when you create an AJAX-enabled project) solves the problem, and
having one on the page that you don't need comes at virtually no cost. Here is the
declaration that must appear in every page, and which is put there for you by the
<asp:ScriptManager ID="ScriptManager1" runat="server" />
ScriptManager control will also be visible
in Design view, as shown in Figure 3-1, but will not be visible when the web site is run.
Implementing partial-page updates is surprisingly easy using ASP.NET AJAX—you just
property set to its default value of
Having done the hard work of not changing that property, you
can then drag one or more
onto your page. Each
UpdatePanel is updated
individually and asynchronously, without affecting one another or anything else on
That's it. Instant and unmistakable performance enhancement with almost no programmer effort.
Figure 3-1. The ScriptManager ...