Ajax: Creating Native JavaScript Objects From SQL - Setting up the .NET project
(Page 2 of 4 )
To begin, I created, in Visual Studio .NET 2003, a new ASP.NET web application for C# at the root of my web server. I called the project "AJAJ" -- Asynchronous JavaScript and JSON.
After the project was created, I deleted the default .aspx file, "WebForm1.aspx," and added a new Web Form item which I named "response.aspx." I also added a new HTML Page item, and called this file "ajaxtest.html."
Because we are not actually going to output any HTML, I deleted all but the first line of the response.aspx file:

Figure 1
We will be relying on the Response.Write() method to output the JSON data.
Next: The .NET server page >>
More ASP.NET Articles
More By James Robson