Connecting to ASP.NET

ASP.NET is an extremely powerful programming platform. Here, we will learn how to make a connection to it with an Ajax request. The sample was created with Visual Studio, and we will simply run it in Debug mode in this example, but it can be configured to run in Windows IIS if you prefer.

The first thing that we will need to do in order to start our example is create a new C# website. After we have created our new C# website, we need to move the Utilities, AjaxUpdater, HTTP, and Ajax JavaScript files to the project directory. We will then need to import them into the Default.aspx file that is created in the project by default when we create the website (see Listing 21.1).

Listing 21.1. Importing the Appropriate JavaScript ...

Get Ajax for Web Application Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.