For the rest of this chapter, we’ll go through two simple exercises to implement the QuickStart example from Chapter 1, but this time using the Microsoft AJAX Library. This exercise will demonstrate how the WebRequest
class can be used to perform AJAX requests. Look ahead at Figures 4-6 and 4-7 to see where we’re heading, and start typing.
1. Open the
http://localhost/Atlas
web application in Visual Web Developer 2005.2. Create a folder named
Scripts
in your project. We’ll use this folder to store the files of the Microsoft AJAX Library, and other JavaScript files we’ll create.3. Copy all the files in
\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\version\MicrosoftAjaxLibrary\System.Web.Extensions\version\
to yourScripts
folder. After this operation, yourScripts
folder should containMicrosoftAjax.js
,MicrosoftAjaxTimer.js
,MicrosoftAjaxWebForms.js
, their debug versions, and other JavaScript source files. The files we’re interested...