paging through records

Results 1 to 2 of 2

Thread: paging through records

  1. #1
    Join Date
    Dec 1969

    Default paging through records

    i know there&#039;s a lot of places that show you how to page through records (in order) but i don&#039;t want to page through them one after the other. Say i have 20 records in a database, I want to display 5 records on each page and have links to each pages so I can skip to any 5 select i want without having to go through the whole thing in order<BR>does that make sense?<BR>i haven&#039;t seen a code for this on the web yet, if anyone has seen one please point it out for me.<BR>Also I want it to automatically make the pages up for me so I don&#039;t have keep putting in show next 10 records etc on a new page.<BR>yeah thats all.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: paging through records

    So if you read the FAQs on paging you know how it works, they usually put a pagenumber in the QueryString (?page=3)<BR><BR>Now the only thing you have to do is get the total pages and to somehting like<BR><BR>FOR i = 0 to TotalPages<BR> Response.Write ("&#060;A HREF=somepage.asp?page=" & i & "&#062;" & i & "&#060;/a&#062;"<BR>NEXT<BR><BR>I think you get the point if you put in some effort

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts