Ciao a tutti !
In uno script volevo mostrare il numero delle pagine (es. 1 2 3 4 5 6 7 8 9 10 ) girando ne ho trovato 1 ma nn so xkè parte da – 1 (-1 0 2 … 9) questo è il codice:
codice:
<%
page = objPagingRS.AbsolutePosition
totPage = objPagingRS.PageCount
max=10
startPage = page
EndPage = page + max
if EndPage => totPage then EndPage = totPage
for i = StartPage to EndPage
Response.write "<a href=pagina.asp?page=" & i & ">" & i & "</a> "
next
if page < = totpage then
Response.write "<a href=cerca.asp?page=" & page+1 & ">" & ">></a> "
end if
%>
In cosa sbaglio?? Butto via tutto!?