Thursday, April 14, 2016

How to enable Ajax Functionality on Custom Master Page in SharePoint 2013

When you create a custom master page through design manager in SharePoint 2013, then unfortunately design manager does not add Ajax snippets in this page, and due to this you cannot apply Ajax functionality on your custom web part.

This is not a big deal now, you can just add below mentioned snippets in your custom master HTML page under a body tag and the same tag will be remove from Head.

<!--SPM:<asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true"/>-->
<!--MS:<SharePoint:AjaxDelta id="DeltaSPWebPartManager" runat="server">-->
<!--MS:<WebPartPages:SPWebPartManager runat="server">-->
<!--ME:</WebPartPages:SPWebPartManager>-->
<!--ME:</SharePoint:AjaxDelta>-->

No comments:

Post a Comment