Ciao a tutti.
Stavo provando questa semplice paginazione ASP con DB MySQL:
Ma non riesco a disabilitare il link «Indietro» ed il link «Avanti» quando le pagine sono finite.codice:pageSize = 25 if(len(Request.QueryString("pagina"))=0)then currentPage = 1 else currentPage = CInt(Request.QueryString("pagina")) end if If Not IsNumeric (currentPage) Then currentpage = 1 If currentPage < 1 Then currentPage = 1 start = ((currentPage - 1) * pageSize) If start < 0 Then start = 0 SQL = "select * from tab " SQL = SQL & " LIMIT " & start & ", " & pageSize " Set RS = Server.CreateObject("ADODB.Recordset") RS.Open SQL, cn if Not RS.eof then while not RS.eof response.write ........... RS.movenext() wend end if RS.Close() Set RS = Nothing response.write ">Avanti
I records vengono correttamente impaginati, ma all'ultima pagina quando clicco sul link «Avanti» mi viene proposta una pagina bianca.
Cosa sbaglio?
Grazie