Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-03-10
6
Medium Priority
?
929 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 14

Expert Comment

by:GeorgeGergues
ID: 35095711
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
ID: 35107257
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
ID: 35107618
glad it worked.
0
 
LVL 14

Expert Comment

by:GeorgeGergues
ID: 35916395
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
ID: 35944479
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

610 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