Click to See Complete Forum and Search --> : ASP and Paging Recordsets


bberrios
July 11th, 2002, 01:10 PM
:confused:
I am having troubles getting my paging functionality to work completely. It appears to work, but when you click on any of the follwoing pages after 1, it re-quieries the entire database instead of carrying over the prior searches results....any suggestions as to why?

Manish Malik
July 11th, 2002, 11:16 PM
Do you modify the query at each page, or do you try to use the same query for all pages and paginate yourself using code (deciding which results to display for the particular page)?

bberrios
July 12th, 2002, 08:01 AM
I do not modify the query at each page, I am trying to use the same query. I am using the same query and paginating each page. Any suggestions...

Manish Malik
July 12th, 2002, 10:21 AM
Originally posted by bberrios
I do not modify the query at each page, I am trying to use the same query. I am using the same query and paginating each page. Any suggestions...

One of the better ways to achieve this is to set the "PageSize" property of the RecordSet and then use the "AbsolutePage" property to move to a specific page. Look up msdn (http://msdn.microsoft.com) for these two properties of the recordset, that should do it.

bberrios
July 15th, 2002, 06:24 AM
I have done this, that is why I am puzzled. I am attaching the page I am using (as a text file), maybe you can see something I don't. Thanks so much for all your input.

bberrios
July 16th, 2002, 11:38 AM
does anyone have any suggestions..this is making me crazy. I even recoded it a different way and it still does the same thing. I can't figure out why?

Here is teh URL...but I don't know if it is accessable.

http://vhacoweb3/hcir/test_version13/ReportData.asp

:confused: