Home > Development, SharePoint Server 2010 > how to use the AJAX Control Toolkit with SharePoint 2010

how to use the AJAX Control Toolkit with SharePoint 2010

Using the AJAX Control Toolkit with SharePoint 2010

The problem is that the latest build of the Ajax Control Toolkit is optimized for .net 4.0. Where SharePoint is still 3.5.

So I downloaded the latest 3.5 AjaxControlToolkit binary and stuck it into GAC.

http://ajaxcontroltoolkit.codeplex.com/releases/view/33804 .

I added the following to Sharepoint Foundation 2010 web.config of the site:

<assemblies>

<add assembly=”AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e” />

</assemblies>

<controls>

<add tagPrefix=”ajaxToolkit” namespace=”AjaxControlToolkit” assembly=”AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e” />

</controls>

<SafeControls>

<SafeControl Assembly=”AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e” Namespace=”AjaxControlToolkit” TypeName=”*” Safe=”True” />

</SafeControls>

I changed the v4.master Page ScriptManager:

From: <asp:ScriptManager id=”ScriptManager” runat=”server” EnablePageMethods=”false” EnablePartialRendering=”true” EnableScriptGlobalization=”false” EnableScriptLocalization=”true” />

To: <ajaxToolkit:ToolkitScriptManager id=”ScriptManager” runat=”server” EnablePageMethods=”false” EnablePartialRendering=”true” EnableScriptGlobalization=”false” EnableScriptLocalization=”true”
/>

References:-

http://srikanthmicrosoft.blogspot.com/2011/04/using-ajax-control-toolkit-with.html

Advertisements
  1. July 14, 2012 at 8:40 pm

    Great! I have been using this toolkit version in mysolutions which dosen’t require a script manager change: I don’t think there si a significant diifference except maybe if you need a control in 3.5 which is not in 3.0. I just add it as a reference in VisualStudio and have it in a folder in my solutions. Works great!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: