Implementing Ajax Tool Kit with SharePoint 2010


Implementing Ajax Tool Kit


  • I used Ajax 3.0.30930.28736 dll for this project. Because as we know SharePoint 2010 working in .Net 3.5 Framework. Ajax dll 3.5 or more than that used .Net 4.0 framework.
  • Custom Master Page contains Ajax Tool kit reference. 
  • When feature activated custom master page applied to your SharePoint site.
  • Use Visual Web Part contains  
    • Ajax Tab 
    • ValidatorCallout Control
  • Following Ajax reference already added to the Master page.
  • First register the Ajax Control Toolkit namespace in the masterpage file by putting the following line at the top of the file:
<%@ Register Assembly="AjaxControlToolkit, Version=3.0.30930.28736,
 Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
  • Then remove the ScriptManager registration from the master page by removing the following line:

<asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false"
EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true"/>
  • Finally add the following line in place of the above line to register Ajax Control Toolkit

<ajaxToolkit:ToolkitScriptManager id="ScriptManager" runat="server" EnablePageMethods="false"
EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true"/>
you can use try rest of other Ajax Tool kit controls.


Please check out the Source Code Attached.
I hope you like this please let me know if you face any problem while implemented this in your system.

Comments

Popular posts from this blog

SharePoint RPC Protocols Examples Using OWSSVR.DLL

Types of Features in SharePoint 2013

Send Email using SharePoint Rest API