Need help displaying few items at a time


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Need help displaying few items at a time

Hybrid View

  1. #1
    computerdude7 Guest

    Need help displaying few items at a time


    I have a server page that queries a database, then sticks out the results
    on the page. I only want to show a few items (maybe 10), then have the user
    click to see the next 10 items. Any help is appreciated. I don't so much
    need code as the concept.

    Thanks
    David

  2. #2
    Russell Jones Guest

    Re: Need help displaying few items at a time

    If your recordset is sorted, save the starting and ending row number
    (absolute position) of the recordset for each user in a cookie, in a hidden
    form variable, or as part of the URL your server will receive when the user
    clicks Next. When the user returns for the next page, retrieve the records
    and start displaying data from the preveiously stored ending row number
    position forward. Do that in reverse to move backward.

    Russell Jones
    Sr. Web Development Editor
    DevX.com

    "computerdude7" <computerdude7@yahoo.com> wrote in message
    news:3a6cabe0$1@news.devx.com...
    >
    > I have a server page that queries a database, then sticks out the results
    > on the page. I only want to show a few items (maybe 10), then have the

    user
    > click to see the next 10 items. Any help is appreciated. I don't so much
    > need code as the concept.
    >
    > Thanks
    > David




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center