.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

I can't get my search paging webpart to work

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :SharePoint
I created a page and put a core results web part on it.  I changed the url to myurl?k=pdf (to show a bunch of pdfs).  This works well.  I customized my xslt to show the columns that I want.   I added a paging webpart and it doesn't seem to work.  I added a refinement panel, and that does work.  Both are set to user query.  I changed both "Maximum page links before current" and "Maximum page links after current" to 2 so I would definitely see paging.

View Complete Post

More Related Resource Links

How can I add custom Search Paging webpart in the Search results page in MOSS 2007


I have created a Basic webpart page and added Content editor webpart to extend the functionality of Advanced Search webpart. This is working fine. Also added OOB Search Paging webpart int his page. But when the number of items returned by the Search Core results webpart exceeds the Page size (10) then when I click on the next link in the Paging webpart then all results are lost and retrieved from All Sites scope. Is there any way to hook into the Search paging webpart.?

Please note that in the Content Editor webpart I have used custom search scope.

I need help with regard to this.

Thanks in advance!.

Active Directory and .NET: paging the search result

Hi everybody!

I have a question about Active Directory in .NET
For my project I need to fetch results from Active Directory search page by page, because later I would need to bind it to the pageable DataGrid.

I tried to use .NET library DirectoryServices for that, but paging provided by this library is transparent to the user and is used only to increase the efficiency of searching, when results are too big. I.e. I cannot tell the DirectorySearcher to give me first page, then the next or previous page, it returns me all resulting pages in one bundle.

However, what I need is to explicitely get page after page directly from the AD searcher and to be able to go at least one page forward or backward.

The solution with copying all results to the DataBase and then do the paging is not accepeted by the clent, since it is too inefficient. And since it's a Web app, I cannot keep results in memory either.

I found some hints about COM Interface, but I could not find good and detailed examples or explanations. I aslo found this line of code: DirectoryServices.Interop.IDirectorySearch.ExecuteSearch(), but I don't know which libraries should i add to be able to compile this code.

If somebody could help me out with that problem, any suggestion is welcome, 'cause this issue is eating me alive :)

Thank you!

Error in / Application after adding employee search in webpart


Hello everyone,

I am working on sharepoint 2007 and I was editing the webpart of the software and after adding the predefined employee search table, the server has crashed while trying to access the server remotely with the following error message:

Error in / Application

However, while trying to login locally I have no problem and can easily login.

What will be the course of action in fixing this error.

Also the site is complaining of an invalid certificate even after adding an exception.

Any help would be greatly appreciated.

Thank You,

Chris Stanko

Portal Search Work - Site Collection Search Does Not


In our SharePoint installation we have an SSP which indexes local office sharepoint server sites.  However there is a problem, although we can do portal searches which reveal search results it is not able to do local searches at the site collection level and as a result we are presented with the typical error below.


No results matching your search were found.

  1. Check your spelling. Are the words in your query spelled correctly?
  2. Try using synonyms. Maybe what you're looking for uses slightly different words.
  3. Make your search more general. Try more general terms in place of specific ones.
  4. Try your search in a different scope. Different scopes can have different results.

I am unsure as to why this strange event is occuring.  We do not have the WSS Search component running in the MOSS environment as the SSP service should be able to index and server search queries at the portal and local site collection level.


Any thoughts to this?



SPGridView Paging In Webpart

I'm working on making results display web part and I'm displaying things using an SPGridView.  Things are working fine, except that I can't get the paging to work correctly.

The paging controls are displaying, but when I click to the next page, it reloads the page I'm on and I loose my results (basically the data isn't getting sent to the next page).  Below is the code I have:

Button cmdSearch;
        TextBox txtQueryText;
        DropDownList scopesDropDown;
        Label lblQueryResult;
        SPGridView grdResults;

        protected override void CreateChildControls()
            // Create and add the controls that make up the
            // user interface of the web part. 

            scopesDropDown = new DropDownList();


            txtQueryText = new TextBox();

            cmdSearch = new Button();
            cmdSearch.Text = "Start Search";
            cmdSearch.Click += new EventHandler(cmdSearch_Click);

            lblQueryResult = new Label();

        void cmdSearch_Click(object sender, EventArgs e)

How can I get search to work for a Custom Document Library with a few third-party field types?

Hi, Using WSS 3.0 with SQL Server 2008 for Workgroups I have created a Custom Document Library (2,462 files - copied from folder into Explorer view and then renamed using Batch Update in web services i.e. "BaseName" field) - basically it uses three fields that are of "Filtered Lookup" (a field type from a third party). The document library is included in the search (i.e. Advanced Settings), but it displays none of the files - bascially not included in search at all with all testing I have done. I created a new Document Library called "Test" and uploaded a document and it is included in the search. Is there any way I can debug this. Is there a log file? Is there something in the Search Database that might help? Your help would be really appreciated as this is my last issue - and its soooo important to the deliverable. Thanks. John.

Advanced search box webpart customization

Hi, I add the Advanced search box web part on to a page and if I uncheck any of the check box in edit mode, the search wouldn’t work and throw a JavaScript error like “'***TextBox.value' is null or not an object” ·         Show "All words" search box ·         Show "exact phrase" search box ·         Show "any words" search box ·         Show "none of these words" search box It looks like a bug of sharepoint 2010, I am not sure if anyone see this before? Is there a walk around for that?

Support paging in custom xslt and apply it to Listview webpart

Hi Gurus, I have a listview webpart. I want to apply a custom xslt to it. I am able to apply a custom xslt to the listview webpart, however I am not able to find a xslt code to support "paging" in the xslt for the webpart. Please bail me out. Thanks in Advance Regards, Bokes

MySite Turned off and People search does not work.

Hi everyone, as one of the requirements for our sharepoint server we have turned the "Mysite" functionality off.When I try to click on a resault of a people search to view someone's profile I get a 404 error. Obviously this is due to turning off Mysite.My question is, is this a bug in SharePoint? Why would turning off MySite not redirect the profile to Userdisp.aspx instead of Person.aspx (releated to mysite)??What I am interested in knowing is has anyone been able to edit the people resault page and redirect the profile information to userdisp.aspx instead of person.aspx?Thanks for any help!

How can I get Result Search with Paging in DataList Control

 I have Database called mygroup , and I have three tables *  Cataloges table .. columns (CatalogeId  int,   CatalogeName nvarchar) *  Brand table  .. columns (BrandId  int,   BrandName nvarchar) *  Products table, it is consists of these columns : ProductId   int ProductNO  nvarchar CatalogeId  int BrandId   int MainSpecification  nvarchar DetailsSpecification  ntext Image  imageand I want to desgin form for products, and this form contain these ToolBox *   DropDownList  for CatalogeId *   DropDownList for BrandId *   DataList Control for displaying the Result Search *  Button   When the user visit Product Page for Example (productpage.aspx),  then he see the two DropDownList , then choose one of Cataloge Name (Laptop , Printer, ....) , and choose one of the Brand Name (Sony, Toshiba, ....) , then Click the Button, and get the  Result Search in Paging DataList 

Why search do not work if I leave only 1-2 parameters to the Advanced Search Box?

I have add advanced search box to the SharePoint 2010 Server Enterprise portal. Default configuration works fine and I can also uncheck few parameters, but problem exists if only 1-3 parameters are checked and other parameters are unchecked. I would like to leave only "All of these words" and "Show Exact phrase" and remove the rest of parameters. However if I uncheck following, the search do nothing. SharePoint refresh the site, but do nothing. -Uncheck: Show "exact phrase" search box -Uncheck:Show "none of these words" search box -Uncheck:Show the scope picker -Uncheck:Etc.Kenny_I

Sharepoint 2010 search cannot work at all

HI I have just installed Sharepoint 2010 trial version. I installed with a 2 server setup - sharepoint and SQL was on separate Virtual machines. Previously the search could work. Crawl logs showed all success. Until yesterday I began to fiddle around with PDF iFilter and configuring it to make sure PDF could be searched. I consulted the following websites(http://sptwentyten.wordpress.com/2009/12/30/install-foxit-pdf-ifilter-on-sharepoint-2010-beta/ http://support.microsoft.com/kb/2293357 http://www.codeproject.com/KB/sharepoint/PDFiFIlterSharePoint2010.aspx) but faced problem along the way such as - issuing IISreset command (In the end I had to use services to stop/start IIS Admin Service), -restarting Sharepoint Search Server 14 (net stop osearch14, net start osearch14). (In the end only the local administrator account could perform this) - I also had other problems/typo so everytime I tried, I did a full crawl. Then I noticed my search could not WORK AT ALL after fiddling with Sharepoint along the way. It showed all failures in the crawl log. With 103 errors related to 'The object was not found'. It will show my top level sites even, ie http://domainname - but actually when i clicked on it, I could access. IN the event viewer, it showed Event ID 14 error. Task Category 'Gatherer', Event ID 14, Source is from 'Sharepoint Search Server'. details

Content Query webpart paging


I have created contnet by query  webpart  to diplay the results 5 per page

How to write the xsl code in sharepoint 2010 for content by querywebpart
explain step bystep.
I want to display the  5 itesm perpage.
Like this
in first page the 5 results should diplay
in seconpage the next 5 results should diplay.

Custom Search WebPart issue with apostrophe


I have a custom search webpart which returns the results based on the search input from a text box. The search is performed on a managed property called "CustomerName". When the customer name has apostrophe " ' " in its text, the search results are not returned because of the wrong query formation. 

I need to use a escape sequence and pass the search query. Can anyone help me how to form the query for this ?

Example: Customer name : A'BCD

How does paging work with a matrix report?


(SSRS 2005)

I have a report that I've set up with an IntreactiveSizze and  PageSize of 11in,8.5in with margines of 0.25in..  The matrix appears to take up less than 11" on the screen but when I go to prive layout I am getting a blank page for every page that has data on it.  Something is being pushed out to the right but I can't find out what.  The main report is calling a subreport where the matrix resides.

This is why I generally use tables as they are much easier to control. Is there any way to control this with a Matrix?

Search Doesn't Work



I'm using WSS 3.0 as a hosted service, and I've installed the Bug Database template. I've logged so many bugs that I need to search for the item, because sorting the list takes too long. However, I often have no results returned, or only a partial list, which means I have to spend a lot of time trying to find the bug manually.

It seems like search will usually find a result if the word is in the title, but if a word is in the comments of an item it likely won't find it.

Is there any reason that search doesn't work?


Paging in SPGridView in Webpart



I am writing a share-point web part to perform search. So user inputs the keyword and i search from different servers and present him the results in Grid View along with paging. To accomplish this i started with different articles and finally wrote following piece of code, which so far is unable to handle paging. It shows the first result but for all other pages , naha, nada, empty ,


So here is the elegant piece of code , i got from googling ..




 #region variables
    DataTable MainDT = null;  
    private SPGridView grid;
    private ObjectDataSource gridDS;
    private LinkButton btnSearch;

 protected sealed override void CreateChildControls()
btnSearch= new LinkButton();
        btnSearch.Text = "Search";
        btnSearch.Click += new EventHandler(btnSearch_Click);
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend