a tutti,
lo so che se ne è parlato tantissimo dell'argomento ma non riesco proprio a capire!
Ho un DataBase Access e una tabella con relative celle che devono visualizzare i dati. Posto il codice della connessione e la visualizzazione dei dati
Non riesco a implemetare la funzione della paginazione dei record. Mi potete aiutare?codice:<% set conn = server.CreateObject("ADODB.Connection") conn.Open PercorsoDB sql = "SELECT * FROM Dati" set rs = server.CreateObject("ADODB.RecordSet") rs.Open sql, PercorsoDB, 3,3 dim record_totali record_totali = rs.RecordCount %> <table border="0" width="100%" cellspacing="1" style="border-collapse: collapse" id="table4"> <tr> <td height="34" colspan="11"> <font size="2"><% response.write record_totali %> Record</font></td> </tr> <tr> <td height="25" width="3%" background="images/header_azzurro.gif"> <p align="center"><font size="2">M</font></p></td> <td height="25" width="3%" background="images/header_azzurro.gif"> <p align="center"><font size="2">C</font></p></td> <td height="25" width="10%" background="images/header_azzurro.gif"> <p align="center"><font size="2">Cognome</font></p></td> <td height="25" width="10%" background="images/header_azzurro.gif"> <p align="center"><font size="2">N</font><font size="2">ome</font></p></td> <td height="25" width="10%" background="images/header_azzurro.gif"> <p align="center"><font size="2">Telefono</font></p></td> <td height="25" width="10%" background="images/header_azzurro.gif"> <p align="center"><font size="2">Fax</font></p></td> <td height="25" width="10%" background="images/header_azzurro.gif"> <p align="center"><font size="2">E-mail</font></p></td> <td height="25" width="10%" background="images/header_azzurro.gif"> <p align="center"><font size="2">Indirizzo</font></p></td> <td height="25" width="10%" background="images/header_azzurro.gif"> <p align="center"><font size="2">Città</font></p></td> <td height="25" width="10%" background="images/header_azzurro.gif"> <p align="center"><font size="2">Stato</font></p></td> <td height="25" width="10%" background="images/header_azzurro.gif"> <p align="center"><font size="2">C.A.P.</font></p></td> </tr> <% do while not rs.EOF if intVolta="1" then intVolta="0" intTesto="#FFFFFF" intSfondo="#C0C0C0" else intVolta="1" intTesto="#FFFFFF" intSfondo="#EDEDED" end if %> <tr bgcolor="<%=intSfondo%>"> <td height="26" width="3%"> <p align="center"> <a href="modifica.asp?ID=<%=rs(0)%>"> [img]images/modifica.gif[/img]</a></td> <td height="31" width="3%"> <p align="center"> <a href="cancella.asp?ID=<%=rs(0)%>"> [img]images/elimina.gif[/img]</a></td> <td height="26" width="10%"><p align="center"><font size="2"><%=rs(1)%></font></p></td> <td height="26" width="10%"><p align="center"><font size="2"><%=rs(2)%></font></p></td> <td height="26" width="10%"><p align="center"><font size="2"><%=rs(3)%></font></p></td> <td height="26" width="10%"><p align="center"><font size="2"><%=rs(4)%></font></p></td> <td height="26" width="10%"><p align="center"><font size="2"><%=rs(5)%></font></p></td> <td height="26" width="10%"><p align="center"><font size="2"><%=rs(6)%></font></p></td> <td height="26" width="10%"><p align="center"><font size="2"><%=rs(7)%></font></p></td> <td height="26" width="10%"><p align="center"><font size="2"><%=rs(8)%></font></p></td> <td height="26" width="10%"><p align="center"><font size="2"><%=rs(9)%></font></p></td> </tr> <% rs.MoveNext loop %> <tr> <td height="34" colspan="11"><font size="2"><% response.write record_totali %> Record</font></td> </tr> </table> <% rs.close %>
Grazie 1000 anticipatamente

a tutti,
!
Rispondi quotando