Hi All
After Painstaking research, I managed to make AjaxControlToolkit and especially Update Panel working with SharePoint 2013 using the following steps:
1- Download Ajax Control Toolkit 4.5 from
http://ajaxcontroltoolkit.codeplex.com/releases/view/112805
3- Register AjaxControlToolkit and AjaxMin namespaces in SharePoint package Designer.
- To Open package Designer see below image
- To register AjaxControlToolkit and AjaxMin as safe controls see below two images
- Register AjaxMin dll as above step.
<add assembly="AjaxControlToolkit, Version=4.5.7.1005, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />
- First add below line in head section of the master page
<%@ Register assembly="AjaxControlToolkit, Version=4.5.7.1005, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" namespace="AjaxControlToolkit" tagprefix="asp" %>
- Second Remove default script manger then add below ToolkitScriptManager line, make sure its placed inside form section of master page
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true">
</asp:ToolkitScriptManager>
Finally it should look like below :
<SharePoint:SharePointForm onsubmit="if (typeof(_spFormOnSubmitWrapper) != 'undefined') {return _spFormOnSubmitWrapper();} else {return true;}" runat="server">
<SharePoint:AjaxDelta id="DeltaSPWebPartManager" runat="server">
<WebPartPages:SPWebPartManager runat="Server"/>
</SharePoint:AjaxDelta>
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true">
</asp:ToolkitScriptManager>
<%@ Register Assembly="AjaxControlToolkit, Version=4.5.7.1005, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
Happy AJAX
Ziad Sowan
Great Job
ReplyDeleteits working Perfect thank you Mr. Ziad Sowan
ReplyDeleteVery helpful. Thank you. However I got error "unknown server tag asp:toolkitscriptmanager" after removing scriptmanager then adding asp:toolkitscriptmanager (the second step of 5). would you please give me any hint about what the problem it might be?
ReplyDeleteI fixed the error.
DeleteNow I am wondering if there are any other ways to remove scriptmanager because I do not want to modify custom .master file that is being associated with custom html master page