Link to home
Start Free TrialLog in
Avatar of roberoo12
roberoo12

asked on

How do I show and link a CoreResultsWebPart with a SearchPagingWebPart on a custom application page?

I have a custom .aspx page in SharePoint.

I can get the CoreResultsWebPart to work fine but the SearchPagingWebPart is not working i.e. it doesn't appear!

Is there a certain way that they need to be in the page? Do I need to link them somehow via QueryId / QueryNumber? Current code below:

<form id="mainForm" runat="server">
    <WebPartPages:SPWebPartManager ID="SPWebPartManager1" runat="server"/>
    <WebPartPages:WebPartZone runat="server" Title="loc:FullPage" ID="SearchPaging" FrameType="TitleBarOnly">
    <ZoneTemplate>
    <Search:RefinementWebPart ID="rwp"></Search:RefinementWebPart>  
    <div>
    <Search:CoreResultsWebPart
     ChromeType="none"
     DateView="false"
     DisplayAlertMeLink="false"
     DisplayDiscoveredDefinition="false"
     DisplayRSSLink="false"
     ShowActionLinks="false"
     ShowWindowsSearch="false"
     AllowPaging="true"
     ID="coreRes" runat="server" title="Search results" Description="Search Results">
     </Search:CoreResultsWebPart>
     </div>
     <Search:SearchPagingWebPart ID="spwp"></Search:SearchPagingWebPart>
     </ZoneTemplate>
    </WebPartPages:WebPartZone>
    </form>
Avatar of GeorgeGergues
GeorgeGergues

Hello,

You can only have one of each per webpart page.

And

It is better not to edit the aspx code.


with that said, can you
[1] remove the search paging webpart ( Edit the page in Explorer)
[2] save page.
[3] Add the paging webpart again.
[4] Save page.

that should work.

Best of luck.

ASKER CERTIFIED SOLUTION
Avatar of roberoo12
roberoo12

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
glad it worked.
Hello,

You can only have one of each per webpart page.

And

It is better not to edit the aspx code.


with that said, can you
[1] remove the search paging webpart ( Edit the page in Explorer)
[2] save page.
[3] Add the paging webpart again.
[4] Save page.

that should work.

Best of luck.
Avatar of Amandeep Singh Bhullar
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.