Solved

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

Posted on 2011-03-10
6
921 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Query in AngularJS 8 79
SharePoint and CAML query help 4 23
orderby list (from Json) 1 42
Blending HTML output from R Studio into a ASP.Net/C# project 4 48
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 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