ho un form che invia ad menu che invia ad una pagina dove impagino un recordset cosi:
<a href=pagina.asp?tipo=e>ecc....
pagina.asp:
tipo=request.QueryString("tipo")
iPageSize = 3 'NUMERO RECORD PER PAGINA
If Request.QueryString("page") = "" Then
iPageCurrent = 1
Else
iPageCurrent = CInt(Request.QueryString("page"))
End If
SQL="select *" & " from PR" & " where tipo='" & tipo &"'"
ecc...
reccount = RS.recordcount
iPageCount = RS.PageCount
If iPageCurrent > iPageCount Then iPageCurrent = iPageCount
If iPageCurrent < 1 Then iPageCurrent = 1
If iPageCount = 0 Then
Else
RS.AbsolutePage = iPageCurrent
iRecordsShown = 0
ecc...
i bottoni :
if iPageCurrent > 0 and iPageCurrent < iPageCount then
<a href="pagina.asp?page=<%=iPageCurrent+1%>">[img]Successiva.gif[/img]</a
il problema è che la prima pagina funziona, ma quando apro la secondo mi dice che non ci sono record perche la query giustamente è sbagliata perche non ricarica la variabile.
come posso risolvere???