Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Great Recordset Paging
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Great Recordset Paging

 Post Reply Post Reply
Author
WebDever View Drop Down
Newbie
Newbie


Joined: 28 September 2003
Location: United Kingdom
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebDever Quote  Post ReplyReply Direct Link To This Post Topic: Great Recordset Paging
    Posted: 05 May 2004 at 9:54am

How do you set-up recordset paging like this:

http://www.dmxzone.com/index.asp?TypeId=25&CatId=661

Cheerz :)



Edited by WebDever
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2004 at 12:01pm

Depends on if your using ADO (Access) or MS SQL. In MS SQL, you'd use a stored procedure. The basic concept is

  1. count the total number of rows
  2. Divide it by the number of links you want
  3. Construct the links to pass start/stop numbers - or start roww/numbsr of records to retrieve - to a page that invokes the db through whatever method your DB supports, and formats the output.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
WebDever View Drop Down
Newbie
Newbie


Joined: 28 September 2003
Location: United Kingdom
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebDever Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2004 at 12:22pm

Sorry, to be a pain but could you show me exactly how to do that

p.s. don't worry about showing me how to do it in MSSQL

Thanks again!!

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2004 at 12:49pm
Away from my code right now, so can'ts grab an example. Try asp101 or aspfaq. It's the kind of thing they would have examples for.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
WebDever View Drop Down
Newbie
Newbie


Joined: 28 September 2003
Location: United Kingdom
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebDever Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2004 at 5:34am
Okay, thanks for ur help!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.