Using the Search Paging Web Part

Charles Lee
  • Using the Search Paging Web Part Charles Lee

    This is my first time working with the search components of SharePoint in much detail so any advice would be helpful here.

    I have a custom search results page created to match our corporate intranet (not sharepoint.)

    The search query is passed in using the the query string parameter so this page is essentially an exact replica of the intranet in static html but with the required elements to render as an ASP.Net page as well as the SPWebPartManager and a single WebPartZone containing the Search Core Results web part.

    This works brilliantly! But you cannot see how many results you got returned or page through them.

    So I need the Search Paging and Search Statistics web parts. Now both of these require connecting to the Search Core Results web part (according to MS documentation), however when I try to add a web part connection in SharePoint designer I get an error dialog saying:

    The Search Paging Web Part does not support connections.

    So how can I connect these up? I cannot use the browser UI as this is a custom page created in SharePoint Designer.

    Help is appreciated as always.

  • The Search Web Parts does not use Web Part Connections. Instead they use an object on the page called SearchResultHiddenObject.

    When you add these Web Parts set the QueryID property of the Web Parts (statistics, paging etc) to QueryId.Query1 ("Cross-Web Part query ID" in the UI).

search web-part
Related questions and answers
  • have 11 pages of document links, each with its own subheadings. So far I have it set where each document has a custom field called "Page" with a check box list of all the document pages on the intranet site. On each individual page, I have setup a Content Query Web Part that displays the documents that have the corresponding Page value set (i.e. if a document Page value has been checked for "HR... by nontechnical personnel Display documents on the appropriate pages without user having to edit actual page or web part Denote document page location using user settable document attributes (if possible

  • How can I set a web part so it will be automatically appended to a web part zone when a specific page layout is selected? The solutions I have tried so far is: Using <ZoneTemplate> under <... part will only be deployed first time, so when creating a new page with the page layout, the web part will not be included. We do not know how to do this, since page layout is set after creating the page. We do have hooks for setting default page layout based on where in the structure the page is created, here we can append the web part as well, but then the web part will only be added if you create

  • I am using Microsoft Search Server 2008 (based on SharePoint Server 2007) + C# + .Net 3.5 + VSTS 2008 + ASP.Net to develop a web application which invokes Search Server 2008 Web Services when a button in the html page is pressed. I am using the following code to query content from Microsoft Search Server 2008. My question is how to display the search results from the DataSet retrieved? I did not find a very good sample from Google. protected void Button1_Click(object sender, EventArgs e) { //The string containing the keyword to use in the search string keywordString

  • I have pages in a pages library on a publishing site which have a managed metadata (taxonomy) field in their content type. I want my custom search webpart to read the taxonomy set on its parent page (I can do this fine) and then query against a specific scope using only the selected tags of the parent page as the filter (no keyword necessary). I have tried to set FixedQuery... searchable/queryable and the property value is null. Can you anyone confirm that I should be getting values from that managed property when there is indeed a managed metadata field on the page

  • I am using MOSS 2007 to provide a custom search results page. I need to display a number as part of search results which indicates the number that result appears in the whole result set. The problem is that the XML returned by search does not contain data pertaining to the page (of results) that you are on. I can use the value of 'id' but this only works if I do not use paged results (not ideal) because the id of the first result on the next page will revert to 1 again. Has anyone had to address this before? Any XSLT magic I can use? Is there an additional field I can add

  • A client is asking for a custom application to be created and deployed within the corporate intranet. Part of the requirements are to publish some of the content also available on the internet site. Both sites are built on SharePoint 2007 but they are on different farms and on different networks. Can the Content Deployment API (and associated tools) handle moving selected content across networks with no direct connectivity? Can we use web services? Has anybody done this sort of thing? If so what approaches have you taken? Thanks, James.

  • part NOT a page. Also, it is not possible to oblige the clients to change their forms from POST to GET just to use my little web part (I think you understand me). I put a breakpoint inside the web...-scope is only within the web part NOT the full page. Also, I do not want to use any AJAX-controls. Update: I was told that the only way to get rid of "Webpage has expired" error is either by: Using...My problem precisely and concisely is that I developed a web part which contains a FileUpload control and the web part in general works correctly except for one issue. Whenever I use the web part

  • I'm working with a new site collection in SharePoint Server 2010 Standard created using the Blank Site template. I would like to add a Content Query Web Part to one of my web part pages, however, this web part does not show up any of the web part category lists. I have already gone into Site Collection Administration → Site Collection Features and activated the Search Server Web Parts, but the CQWP still doesn't show up. Am I missing something?

  • We are using SPGridView and binding it to the database. Paging is also enabled. The grid is showing 10 records as the pagesize is 10, but when we click on the next page it says "There are no items to show in this view" The PageIndexChanging event code is: void Grid_PageIndexChanging(object sender, GridViewPageEventArgs e) { Grid.PageIndex = e.NewPageIndex; Grid.DataBind(); } The Second problem is that when I select a row in SPGrid the date columns are empty. Does anyone know how to do paging with SPGridView?

Data information