Solved

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

Posted on 2011-03-10
6
916 Views
Last Modified: 2012-05-11
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>
0
Comment
Question by:roberoo12
  • 3
6 Comments
 
LVL 14

Expert Comment

by:GeorgeGergues
Comment Utility
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.

0
 

Accepted Solution

by:
roberoo12 earned 0 total points
Comment Utility
Sorry - I don't think you've understood the problem. This is a custom application page so you have to edit the aspx code! Also you can definitely have more than 1 web part per page.

Anyway I've found the issue. I needed a runat="server" in the paging component.
0
 
LVL 14

Expert Comment

by:GeorgeGergues
Comment Utility
glad it worked.
0
 
LVL 14

Expert Comment

by:GeorgeGergues
Comment Utility
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.
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
Comment Utility
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now