if I use a WHERE clause in my select statement, only the records beginning with the chosen letter will be displayed... The user should be able to keep paging thru (both fwd and backward) the entire universe of records after jumping to records beginning with a particular letter in the recordset. For instance, after jumping to letter "J" the user should be able to click on the next/previous page # to see the records K and beyond - or I and before.... Using a WHERE clause in the SQL precludes this...
Main Topics
Browse All Topics





by: CorrupticusPosted on 2003-08-05 at 10:40:21ID: 9082279
MORE EXAMPLES:
mypage.asp?offset=0 - displays initial set of 15 records according to the alphabetic sort order (page 1)
mypage.asp?offset=15 - next 15 records (page 2)
mypage.asp?offset=30 - next 15 (page 3)
mypage.asp?offset=45 - etc (page 4)
From page 4, one can go (by typing in or clicking on the page links) to mypage.asp?offset=201 (page 14) which shows the results for companies beginning with the letter J. One can then hit the back button on the browser to take them back to page 4 (offset=45) and keep sequentially paging thru the recordset to page 5 (mypage.asp?offset=60)
or keep going forward from page 14 (offset 201) to page 15 (offset=216) and beyond.
This is the sort of flexibility I'm looking to have, by dynamically (not hardcoding) assigning letters to page #s (offset#s)