I had a paging through records page. I need to make it show only 10 navigational pages (as the records are splitted into about 150 pages) but I could not manage to do this. What I need is to show:
<< Prev | 13 14 15 16 17 18 19 20 21 22 | Next >>
What I have now is:
<% For i = 1 To allpages If Cint(Request.Querystring("pn")) = i Then Response.Write "<a href=""shownewsletters.asp?cat="& Request.QueryString("cat") &"&pn=" & i & """>[" & i & "]</a> " Else Response.Write "<a href=""shownewsletters.asp?cat="& Request.QueryString("cat") &"&pn=" & i & """>" & i & "</a> " End If Next x = (allrecords - 9) Mod 12 %>
|
I'm sure is quite something easy and I am digging in the wrong direction
!
I had to mention that I'm using mySQL as db and it does not suports rs.recordcount, rs.pagesize, rs.absolutepage. And that part is working well, the navigation is giving me headaches.
Edited by zaboss