To extend your SharePoint site with Microsoft ASP.NET AJAX 1.0, need to perform a few steps.
• First, need to download and install ASP.NET AJAX on servers
• Second, need to extend web.config with some settings to enable ASP.NET AJAX technology.
• Third, need to add the ASP.NET AJAX Script Manager into master page to enable scenarios such as Extenders or UpdatePanels.
A. Installing Microsoft ASP.NET AJAX 1.0
After installing add Reference ,System.Web.Extensions.
B. Extending SharePoint web.config files with Microsoft ASP.NET AJAX 1.0
Extending SharePoint web.config files with ASP.NET AJAX requires the some Ajax registration entries in-line with WSS registration entries. To do this we need to edit SharePoint web.config file.
1. Add a
2. Add a
3. Add the following tag to the
4. Add some new registrations to the end of the
5. Add a new registration to the HttpModules section, beneath any existing registrations:
6. Add a SafeControl entry for the System.Web.UI namespace from Microsoft Ajax Extensions, within the
7. Finally, add the following configuration tags at the bottom of web.config, near the bottom before the end
C. Adding a ScriptManager into a SharePoint MasterPage
To statically embed a script manager into a page, it is recommended that, add the ScriptManager into the master page of a site.
To do this, open up the master page for your site. Typically, this will be located at
Add the following into the markup of your page. A recommended location is right beneath the WebPartManager registration (search for
D. Using UpdatePanels within SharePoint
UpdatePanels are a very useful addition to ASP.NET AJAX, and represent the simplest way to convert existing, standard ASP.NET controls and parts to take advantage of Ajax techniques. However, there are some changes within Windows SharePoint Services which may get in the way of working with ASP.NET AJAX.
To do this, you may need to register a client startup script which disables this workaround, in addition to resetting the default form action:
This script may be directly embedded in the page, or could be emitted by a control that uses the UpdatePanel.
E. Modify Windows SharePoint Services 3.0 scripts to change doPostBack() behavior
To modify scripts to ensure proper doPostBack() behavior
private void EnsurePanelFix()
if (this.Page.Form != null)
String fixupScript = @"
if (_spEscapedFormAction == document.forms.action)
var RestoreToOriginalFormActionCore =
RestoreToOriginalFormAction = function()
if (_spOriginalFormAction != null)