Adding ASP.NET AJAX to Existing Websites

Adding ASP.NET AJAX to Existing Websites

If you want to add Microsoft ASP.NET 2.0 AJAX Extensions 1.0 to an existing website…

Click here for the video! 

First, install the ASP.NET AJAX 1.0 Extensions: ASP.NET 2.0 AJAX Extensions 1.0

Next, add some stuff to the web.config file:

In the system.web section add the following line:

   
     
       
     

   

This will save you having to have the following directive at the top of each page:

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI” TagPrefix="asp” %>

If you find you are getting the nasty “‘Sys’ is undefined error on your pages, putting the following into the System.Web section will fix this:

   
     
     
     
     
   

   
     
   

Thats it!  All you should need to do now is just drop a script manager and update panel on the page and throw the controls you want to AJAX-enable in them and you are locked and loaded.

Thanks to Darryl Burling for the tip!

Comments

AWS migration and transformation programs reduce cost, risk, and complexity for rapid business innovation and agility at scale. I offer a number of AWS consulting services, including an AWS migration service to quickly get you up and running. Please contact me for details on how I can help your organization.