?
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
?
927 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

770 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