Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page through a record set.

Status
Not open for further replies.

ironhide1975

Programmer
Feb 25, 2003
451
US
Trying to develop a listing page in Classic ASP and would like the ability to only show 50 records at a time and allow the user to page forward and back 50 records at a time. Is there an easy way to do this on the with ASP classic on the SQL end in where you can pass something to a SQL view or Stored procedure and tell it to only bring back the record rows you need?

 
Taking a look at both options, it seems like the stored procedure would be the best way to go. Is there anyway to specify in a SQL query where to start in the record rows? Or is it just assumed that at some point the entire dataset is going to be brought back and it's either up to the ASP code or a Stored Procedure to fill it out?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top