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.
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.
Sr. Web Development Editor
"computerdude7" <email@example.com> wrote in message
> 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
> click to see the next 10 items. Any help is appreciated. I don't so much
> need code as the concept.
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