-
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
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks