PDA

Click to See Complete Forum and Search --> : paging query results


Piz Bruin
Mar 5th, 2001, 08:09 AM
I have a web based app that querys a MS-SQL database. Sometimes the results of the users query is very large & creates a page that is way too long.

How can I break up the results into smaller pages, kind of like you get with the popular search engines. A page list at the bottm of each page like:

Page 1 - 2 - 3 - 4 - Next>>

Thanks!!!

Mar 5th, 2001, 10:40 AM
Well, I just use a for-next loop to display X results, and if someone clicks the next or previous arrow (or number) I just pass a parameter along and according to what value the parameter has, I display the results belonging to that page.

But I'm sure there is a shorter and more efficient way.

Marcel