Author: Tobias Zimmergren
Url: http://www.zimmergren.netIn this very short and straight-on post I’ll just mention how you can configure your SharePoint installation to enable support for ASP.NET AJAX 1.0 since a lot of people have been asking me about it.

Before we make any changes in the web.config we need the following:

  • A backup of the web.config file (important, because if something goes wrong you might need to revert to the old one)
  • SharePoint (WSS 3.0 or MOSS 2007)
  • ASP.NET 2.0 AJAX 1.0 Extensions
  • Be in the mood for some copy/pasting the following 5 minutes

Copy/Paste time

Locate your default web.config file (usually here: "C:InetpubwwwrootwssVirtualDirectories80web.config").
Edit the web.config file according to this scenario:

  1. Locate the element and add the following code inside it:

  1. Within the element, locate the element and insert the following snippet:

*EDIT: Thanks to Hardik Bhilota for pointing out that I was missing a comma after the version number. Cheers
3. ##### Within the element, insert the following snippet:

  1. ##### Within the element, insert the following snippet:

  2. ##### Within the element, add the following snippet:

  3. ##### And since we need to ensure that the assembly is trusted, locate the element ad add the following snippet:

  4. ##### Within the element, add the following snippet:


You’re all set

Save your web.config file, restart IIS (iisreset.exe for convenience) and enjoy your ASP.NET 2.0 AJAX 1.0 support in SharePoint.
This isn’t a big deal to accomplish, so that’s all you get from this blogpost.

In the next blogpost I’ll talk about how you can easily create a UserControl, hosted with the SmartPart, with support for AJAX.