Sharepoint 2013 search pagination and refinement panel not working with anonymous access.

Posted by

RajeshkannanSharepointBlog

Step1:

Open the  visual studio 2013 new project and create new visual web part .

Search1

And  just  double Click the  SearchResultPage.ascx page and  paste  the  given code  like this .

<%@ Register TagPrefix=”wssawc” Namespace=”Microsoft.SharePoint.WebControls” Assembly=”Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>

<%@ Register TagPrefix=”SharePoint” Namespace=”Microsoft.SharePoint.WebControls” Assembly=”Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>

<%@ Register TagPrefix=”SearchWC” Namespace=”Microsoft.Office.Server.Search.WebControls” Assembly=”Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” %>

<div style=”float:left”>

<SearchWC:RefinementScriptWebPart ID=”RefinementScriptWebPart1″ runat=”server” ChromeType=”None” />

&nbsp;

</div>

<div class=’ms-srch-siteSearchResults’>

<SearchWC:SearchBoxScriptWebPart ID=”SearchBoxScriptWebPart1″ PageTitlePrefix=”<%$Resources:Microsoft.Office.Server.Search, Search_Results_Page_Title%>” RenderTemplateId=”~sitecollection/_catalogs/masterpage/Display Templates/Search/Control_SearchBox.js” EmitStyleReference=”false” ShowNavigation=”true” ChromeType=”None” runat=”server” />

<SearchWC:ResultScriptWebPart ID=”ResultScriptWebPart1″ runat=”server” ChromeType=”None” UseSharedDataProvider=”true” ShowAdvancedLink=”false” ScrollToTopOnRedraw=”true” ShowUpScopeMessage=”true” />

<SearchWC:DataProviderScriptWebPart ID=”DataProviderScriptWebPart1″ runat=”server” ChromeType=”None” IgnoreStaleServerQuery=”true” ClientType=”SiteResultsQuery-All” QueryPropertiesTemplateUrl=”sitesearch://webroot” />

</div>

Search2

After that deploy the solutions .

Now  You can Use WepartZone And Page layouts  working Fine anonymous access

View original post

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s