Result
Page:
<%
if request.querystring("ctr")="" then
j = 1
tmp=0
else
j=request.querystring("ctr")
tmp = ( Int ((j-1) / 10)) *10
end if
if tmp <> 0 then
%>
First
<<Prev
<%
end if
for i = 1+tmp to 10+tmp
if i <= rs.pagecount then
if i = Int(request.querystring("ctr")) then
%>
[<%=i%>]
<%
else
%>
<%=i%>
<%
end if
end if
next
%>
<%
if i <= rs.pagecount then
%>
Next >>
<%
end if
%>
<%
if (tmp+10) < rs.pagecount then
%>
Last
<%
end if
%>