Assuming your using a database, I would do it like this: Pass the beginning Record in the QueryString to begin with. If you want to start from the top, pass 1 like: http://www.somewebsite.com/page.asp?recordstart=1 <% objTbl.Open "Select top 10 from [your database] where record >= '" & Request.QueryString("recordstart") & "' order by record asc", objConn objTbl.MoveFirst While Not objTbl.EOF Response.Write [record details] objTbl.MoveNext Wend // Use the now current record number as the basis to run this script again, but pointing to a new record to begin with. Response.Write "<a href='http://www.somewebsite.com/page.asp?recordstart=" & objTbl("record") & "'>Next Page</a>" objTbl.Close %> Of course, you can also pass it from a form, so the method you chose is up to you... How your database is setup may vary, but the concept is the same. If you want to sort it by a field in the record, then use that... etc...
Thank you for your time, Eric J. Goforth, Owner Goforth Technologies (Formerly Goforth Electronics) Ph. 760-899-6494 Fax. 760-495-5574 Online. http://www.goforthtech.com/ -----Original Message----- From: Adina Rosenbaum [mailto:[EMAIL PROTECTED] Sent: Monday, July 19, 2004 2:10 PM To: [EMAIL PROTECTED] Subject: [ASP]paging can anyone help me with paging information.... for example if I have 100 items and want ten items per page... how do I code it to dynamically generate the various pages and the links that navigate btwn them.... thanks adina [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Sponsor ADVERTISEMENT <http://us.ard.yahoo.com/SIG=129lbmuoj/M=297844.5077745.6203885.3356155/D=groups/S=1705115381:HM/EXP=1090345917/A=2196681/R=0/SIG=10v7of2am/*http://www.target.com/careers> click here <http://us.adserver.yahoo.com/l?M=297844.5077745.6203885.3356155/D=groups/S=:HM/A=2196681/rand=404217363> _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
