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:SPWebPartMan ager ID="SPWebPartManager1" runat="server"/>
<WebPartPages:WebPartZone runat="server" Title="loc:FullPage" ID="SearchPaging" FrameType="TitleBarOnly">
<ZoneTemplate>
<Search:RefinementWebPart ID="rwp"></Search:Refineme ntWebPart>
<div>
<Search:CoreResultsWebPart
ChromeType="none"
DateView="false"
DisplayAlertMeLink="false"
DisplayDiscoveredDefinitio n="false"
DisplayRSSLink="false"
ShowActionLinks="false"
ShowWindowsSearch="false"
AllowPaging="true"
ID="coreRes" runat="server" title="Search results" Description="Search Results">
</Search:CoreResultsWebPar t>
</div>
<Search:SearchPagingWebPar t ID="spwp"></Search:SearchP agingWebPa rt>
</ZoneTemplate>
</WebPartPages:WebPartZone >
</form>
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:SPWebPartMan
<WebPartPages:WebPartZone runat="server" Title="loc:FullPage" ID="SearchPaging" FrameType="TitleBarOnly">
<ZoneTemplate>
<Search:RefinementWebPart ID="rwp"></Search:Refineme
<div>
<Search:CoreResultsWebPart
ChromeType="none"
DateView="false"
DisplayAlertMeLink="false"
DisplayDiscoveredDefinitio
DisplayRSSLink="false"
ShowActionLinks="false"
ShowWindowsSearch="false"
AllowPaging="true"
ID="coreRes" runat="server" title="Search results" Description="Search Results">
</Search:CoreResultsWebPar
</div>
<Search:SearchPagingWebPar
</ZoneTemplate>
</WebPartPages:WebPartZone
</form>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
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.