Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 24th, 2006, 11:32 PM
Authorized User
 
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to InsouciantCoquette Send a message via Yahoo to InsouciantCoquette
Default Displaying multiple records in Table thru Paging?

Hie. It's me again. I have a table (invalidName) that contains over 30,000 records. I want to display all these records for viewing & checking purposes. There is an ASP method by which I can use Paging to display these records in pages. Can anyone please enlighten me on how to start? And what would happen if the records are too many (Eg. > 10,000 records) & would it affect the layout of the ASP page?

* Love me for a reason; Let the reason be love *
__________________
* Love me for a reason; Let the reason be love *
 
Old February 1st, 2006, 10:35 PM
Authorized User
 
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to InsouciantCoquette Send a message via Yahoo to InsouciantCoquette
Default

Gosh people. Can I have a little bit of attention here??

* Love me for a reason; Let the reason be love *
 
Old February 2nd, 2006, 10:01 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

One way to do this would be to run one query when you first hit your page to get the total number of records in your table, then run another query to return the required number of records for that page.

The number of pages can be calculated from the total records and you can then create links containing an offset parameter to allow selection of the next [n] records starting from that offset.

If you only select as many records as you need, too many record will not be an issue.

HTH,

Chris

 
Old February 9th, 2006, 12:14 AM
Authorized User
 
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to InsouciantCoquette Send a message via Yahoo to InsouciantCoquette
Default

Thanks Scott.. *smile*

* Love me for a reason; Let the reason be love *





Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Multiple Records on Report bnc111 Access 1 August 16th, 2007 02:10 PM
Deleting multiple records from the same table jscrogg Beginning VB 6 3 June 12th, 2006 05:30 AM
multiple records in a table fadege Classic ASP Databases 0 October 13th, 2005 07:40 AM
How Can I Delete Multiple Records From a Table? Lucy SQL Server 2000 5 May 12th, 2004 05:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.