SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 78 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"


Using the AJAX Script Manager to Deliver Your Custom Class
To implement a web page that uses this class, add a new web form to the solution, and
call it TestAJAXBookNamespace.aspx (see Figure 3-6).
?– Note The Default.aspxpage already contains the ScriptManager server control, but we??™ll use a new
page to show how to add the control to a new page.
To this web form, you will add an ASP.NET AJAX ScriptManager server control. This
server-side control manages the downloading of the Microsoft AJAX Library JavaScript
files to the client so that the support for your AJAX code will be available when the user
opens the web page. In addition, it will load any of your custom JavaScript files. The easiest
way to add the server control to your web page is by simply dragging and dropping it
on the page designer.
CHAPTER 3 ?–  THE MICROSOFT AJAX LIBRARY: MAKING CLIENT-SIDE JAVASCRIPT EASIER 37
Figure 3-6. Adding a web form to test your JavaScript
You??™ll now see the suite of ASP.NET AJAX server controls in your Toolbox installed
into Visual Studio 2005 (see Figure 3-7). Drag and drop the ScriptManager control onto the
designer for TestAJAXBookNamespace.


Pages:
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90