Ho una paginazione del genere:
e se ho più di 10 pagine mi scrive
1 3 4 5 6 7 8 9 10
11 12 13...
<table border="0" cellpadding="2" cellspacing="0" widht="100%">
<tr class="testo">
<td class="testogrigio">
<div align="left">Pages:</div></td>
<%
For pag = 1 to rs.pagecount
if clng(page) = pag then
%>
<td class="titolirossi">[<%=pag%>]</td>
<% else %>
<td class="right"><a href="<%=PageName%>?page=<%=pag%>&search=
<%=Server.UrlEncode(search)%>"><%=pag%></a></td>
<%
end if
If Right(pag,"1") = "0" Then
%>
</tr>
<tr>
<%
End If
Next
%>
</tr>
</table>
solo che se ho più di 10 pagine correi scrivere "altre 10" e passare alle altre, così come per tornare indietro!
1 3 4 5 6 7 8 9 10 [altre 10]
[prime 10] 11 12 ...
Come posso fare?