Ask a Question related to ASP Database, Design and Development.
-
Chris Hohmann #1
Re: Problem with paging search results correctly
"CharitiesOnline" <charitiesonline@hotmail.com> wrote in message
news:IaCqb.179$u03.28@news-binary.blueyonder.co.uk...Which on> Hello,
> I have set this script up to add paging to a search results page.many> the first page works fine. I calculates how many pages there should be
> depending on the number of results returned from my search and howHOWEVER.....> records I have set it to display per page. All great so far,page, it>
> When you click the next link to see the next 10 results on the nexttable! So> just dumps the search details and pulls up all the records in thethe> it finds 320 matching results, and then happily pages through them 10
> records at a time, with both the next and prev links working!
>
> I need to find a way of using this paging system in conjunction with& I> search results, so if for example I search for "yellow" and I get 18
> matching results with the first 10 being displayed on the first page,page,> then click next, I would like to see the last 8 results on the nextactually> with the option to click 'prev' and see the previous 10 again. Whatshowing> happens is that it shows me the first 10 matching results and says
> displaying page 1 of 2, I click the 'next' link and it suddenly saysstarting> page 2 of 32 and starts listing all the records from the databasePlease don't multi-post> at record number 11 !
>
> Please can anyone help me fix this?
Newsgroup Etiquette:
aspfaq.com/2081
Recordset Paging:
aspfaq.com/2120
HTH
-Chris Hohmann
Chris Hohmann Guest
-
Sending search results to a results page..with asp
Please help.. very :confused; Ive setup 4 dynamic drop down boxes which populate themselves from my database, this all works fine..The last box... -
problem with querying search results
Hello! I am having a problem running a query on a Verity search recordset. It seems that I should be able to run a Query of Query using the... -
recordset paging on search/results pages
I have a standard search form that posts to a results page. I added the recordset navigation bar to the dynamic results table using DW, but when I... -
Removing a row in each ItemDataBound (with condition) results in a paging problem
Hello, I'm using a datagrid. In each ItemDataBound, i have a lot of instructions and for one condition i have to hide current row. So I use... -
Dreamweaver MX Paging Not Working Correctly - HELP!
Try using a search form with a METHOD of GET. Then you can request the querystring instead of the form variables. I'm not quite sure how you'd do... -
Chris Hohmann #2
Re: Problem with paging search results correctly
And now for an answer to your actual question... :)
The problem is that the search criteria is not being passed along when
you page through the recordset. You're code is looking for
Reuqest.Form("seach"). Therefore you must either
1. Replace your previous/next links with a form that passes the search
criteria.
OR
2. Include the search criteria in the links and modify your code to
check for both Request.Form("search") and Request.Querystring("search")
HTH
-Chris
Chris Hohmann Guest



Reply With Quote

