.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 6th, 2003, 03:52 AM
jmkeeping jmkeeping is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 1 jmkeeping User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
displaying database items

I am connecting to a database that generates multiples results, which is fine as that is what I want it to do, but I only want to display 5 results per page and at the top and bottom have the option for the user to use a drop down menu to increase the number of page results OR if they don't want the number of results to change, give them the option to move to the next page and back...<br><br>The code for the database connection works fine... just need a hand polishing it to give the user those options...

Reply With Quote
  #2  
Old June 8th, 2003, 01:25 PM
Intelligis Intelligis is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 Intelligis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
In Select statement use "SELECT TOP 5 * FROM dbname" for the first screen to keep processing low.<br><br>For subsequent searches return all records but loop based on a querystring so the links FORWARD and BACK could be a href='page.asp?recordsstarting=25'Next Page<br><br>The script would loop until record request.querystring("recordsstarting"), then display the next 5, then exit giving an easy way to only display 5.<br><br>The only problem with this is the server has to read all records everytime the page is requested. Should be alright for small sites

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > displaying database items


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT