Print Page | Close Window

Pagination

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=22423
Printed Date: 29 March 2026 at 10:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Pagination
Posted By: xeerex
Subject: Pagination
Date Posted: 15 January 2007 at 11:29pm
Hello everyone,

I'm back to writing some websites in ASP and need to learn how to do some pagination when pulling results from a database. Basically, my results are displayed in standard "table fashion" which makes for a lot of scrolling. I need to have a system similar to that in the forum.

Yes, I can take a look at -borg-'s code as a basis, but I wondered if anyone had a relatively simple script or tutorial?


-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production



Replies:
Posted By: xeerex
Date Posted: 17 January 2007 at 2:05am
Ok - I've implemented code found here:

http://www.asp101.com/articles/recordsetpaging/index.asp

which seems to work pretty well. Now I've just got to get the display in horizontal rather than all vertical.


-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: ScriptMaster
Date Posted: 01 February 2007 at 2:18pm

move the <tr> </tr> outside of the loop



Posted By: MrMellie
Date Posted: 06 February 2007 at 10:41am
The easiest way to do pagination is use MySQL as the backend database. The LIMIT and OFFSET clauses are designed to do exactly the function you want. No more pulling off 1000 records just to few a small subset of them.

SQL2005 also has a new function (ROW_NUMBER)that can be used to give the same results.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net