yeah hi and thanks for the reply,
i sort of procured a solution,but i'm interseted in knowing if ado provides such a functionality.
- <%
-
nPageCount=Rs.PageCount
-
currentPage=CLng(request("page"))
-
iStart=request.QueryString("start")
-
if iStart="" then istart=1
-
if request.QueryString("origin")="set" then currentPage=clng(iStart)
-
Rs.AbsolutePage=currentPage
-
-
iFinish=iStart+14
-
min=nPageCount
-
if iFinish<min then min=iFinish
-
for j=istart to min
-
if j=currentPage then
-
response.Write j
-
else%>
-
</span><a href="all.asp?<%=querystr%>&page=<%=j%>&start=<%=iStart%>"><%=j%></a>
-
<% end if
-
next
-
for k=min+1 to iFinish
-
response.Write("<A href='#' style='visibility:hidden'>00</A> ")
-
next
-
follow=nPageCount
-
if iFinish<nPageCount then
-
iStart=iFinish+1
-
%>
-
<a href="all.asp?<%=querystr%>&page=<%=j%>&start=<%=iStart%>&origin=set">"><img src="images/next.gif" width="20" height="20" alt="Next 16" border="0"/></a>
-
<% else %>
-
<img src="images/rightyellow.gif" width="20" height="20" border="0" />
-
<% End If %>
-
now what you are saying about dividing the total record count with the number of links to pages i wanna display,can you be more specific and show me how