SharePoint components - business process without development, InfoPath, SharePoint Designer or workflows. SharePoint Services, SharePoint Foundation & SharePoint Server 2007/2010.

Infowise Ltd, SharePoint web parts and solutions
SharePoint 2010 Ready
Search
Bestsellers
Smart List Pro
Advanced tab, column and view permissions for SharePoint lists and document libraries
New
Smart Alert Pro
Upgrade your SharePoint alerts with conditions, templates and much more
New
Enterprise Capacity Solution
Security-trimmed cross-site collection navigation for SharePoint 2007/2010
New
Associated Tasks Field
Create and manage relationships between SharePoint items and documents
New
Connected Field
Cascading relation between two or more lookup columns in SharePoint lists
New
Smart Print Pro
Print and export SharePoint lists and items in your custom layout
New
Electronic Signature Field
Enables signing SharePoint list columns for regulatory purposes
New
Facebook Page Twitter Feed RSS YouTube Channel
Skip Navigation LinksHome > Support > Enabling AJAX on Web Application
Enabling AJAX on Web Application

Follow the instructions to enable ASP.NET AJAX support to SharePoint 2007 web applications

SharePoint 2010 comes with AJAX support pre-installed. No additional changes are required.

1. Install .NET 3.5 Framework if not present. Use Windows Update or follow the link
2. Edit the web.config file of the web application. The web.config file is located in the root of the web application's home directory, e.g. c:\Inetpub\wwwroot\wss\Web Applications\80.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <configuration>
        <configSections>
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
                    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                        <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
                        <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
                        <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
                    </sectionGroup>
                </sectionGroup> 
            </sectionGroup>
        ...
        </configSections> 
        <SharePoint>  
            ...
            <SafeControls>
                ...
                <SafeControl Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />
            </SafeControls>
            ...
        </SharePoint>
        <system.web>
            <httpHandlers>
                ...
                <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
            </httpHandlers>
            ...
            <compilation batch="false" debug="false">
                <assemblies>
                    <add assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
                    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                </assemblies>
            </compilation>
            <pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
                <controls>
                    <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                </controls>
                ...
            </pages> 
                ...
        </system.web>
        ...
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false" />
            <modules>
                <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            </modules>
            <handlers>
                <remove name="WebServiceHandlerFactory-Integrated" />
                <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
                <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            </handlers>
        </system.webServer>
    </configuration>
        
3. Edit the master page file of the site to include the script manager tag directly under the opening tag add:

<asp:ScriptManager runat="server" id="sm"/>

Near the bottom of the same master page you need to include the following script, which enables AJAX component to override second submit prevention code of SharePoint (otherwise, only one submit of  AJAX controls will actually be performed):

<script type="text/javascript">
  _spOriginalFormAction = document.forms[0].action;
  _spSuppressFormOnSubmitWrapper=true;
</script>

Place this code just before the closing </body> tag
Hot Products
Smart List Pro
Advanced tab, column and view permissions for SharePoint lists and document libraries
 
Smart Alert Pro
Upgrade your SharePoint alerts with conditions, templates and much more
 
Enterprise Capacity Solution
Security-trimmed cross-site collection navigation for SharePoint 2007/2010
 
Associated Tasks Field
Create and manage relationships between SharePoint items and documents
 
Connected Field
Cascading relation between two or more lookup columns in SharePoint lists
 
Smart Print Pro
Print and export SharePoint lists and items in your custom layout
 
Electronic Signature Field
Enables signing SharePoint list columns for regulatory purposes

New Releases
Smart Action Pro
Run powerful custom actions when an SharePoint item is added, modified or deleted
 
Smart List Mobile
Your mobile users can now experience the full power of your SharePoint applications

News & Events
SUBSCRIBE TO OUR NEWSLETTER
25-Jan-2012
After Change conditions in Smart Action Pro!
18-Jan-2012
Email as PDF feature in Smart Print Pro!
06-Jan-2012
Employee Training site template released
31-Dec-2011
Expense Reimbursement site template released
26-Dec-2011
Help Desk site template released
05-Dec-2011
Smart Action Pro now has Execution columns
Facebook Twitter RSS Stay updated

 
Home
Products
Bundles
Site Templates
Customers
Partners
Support
Blog
Contact Us
Copyright © 2011 Infowise Ltd. All rights reserved. Microsoft, SharePoint, WSS and MOSS are trademarks of the Microsoft Corporation.