Agência OFF, desenvolvimento de soluções web para as Agências Digitais
Para o bem de todos segue a Paginação que funciona no MySQL, Testada e Aprovada
LEGENDAS:
TedkDados => RS
TedKBanco => Conn
TedkDados.Pagesize = 30 => Quantidade de linhas!
-
-
<%
-
TedkBanco.CursorLocation = 3
-
Set TedkDados = Server.CreateObject( "Adodb.RecordSet")
-
TedkDados.Pagesize = 30
-
TedkDados.Open "Select NomeNewsletterEMail, EMailNewsletterEMail From adminNewsletterEMail Order By NomeNewsletterEMail Asc",TedkBanco
-
-
If TedkDados.Eof Then
-
Response.Write("")
-
Else
-
-
PaginaAtual = CInt(Request.Querystring( "Pages"))
-
-
If PaginaAtual = 0 Then
-
PaginaAtual = 1
-
End If
-
-
TedkDados.AbsolutePage = PaginaAtual
-
Num = TedkDados.PageCount
-
-
While Not TedkDados.Eof And TedkDados.AbsolutePage = PaginaAtual
-
% >
-
-
<%
-
TedkDados.MoveNext : Wend
-
Anterior = PaginaAtual – 1
-
Proximo = PaginaAtual + 1
-
-
If Anterior <= 0 Then
-
Anterior = 1
-
End If
-
-
If Proximo > TedkDados.PageCount Then
-
Proximo = TedkDados.PageCount
-
End If
-
% >
-
-
<table border="0" cellpadding="0" cellspacing="2" width="100%"><tbody>
-
<tr>
-
<td class="classFonte01" bgcolor="#ebebeb" height="30" width="44%"><strong>Nome</strong></td>
-
<td class="classFonte01" bgcolor="#ebebeb" width="47%"><strong>E-Mail</strong></td>
-
</tr>
-
<tr>
-
<td class="classFonte01" bgcolor="#f7f7f7" height="22"><% Response.Write(TedkDados("NomeNewsletterEMail")) %></td>
-
<td class="classFonte01" bgcolor="#f7f7f7"><% Response.Write(TedkDados("EMailNewsletterEMail")) %></td>
-
</tr>
-
<tr>
-
<td colspan="2" class="classFonte01" align="right" bgcolor="#ebebeb" height="30"><strong>Paginas:</strong> <%
-
Jo = 1
-
While Jo <= TedkDados.PageCountIf PaginaAtual = Jo Then
-
Response.Write( "["&Jo&"] ")
-
Else
-
Response.Write( "<a default.asp?pages="&Jo&">"&Jo&"</a> ")
-
End IfJo = Jo + 1
-
Wend
-
End If
-
%></td>
-
</tr>
-
</tbody></table>
-
Aproveitem… 100% Testado no MySQL
Agência OFF, desenvolvimento de soluções web para as Agências Digitais


Mano vc resolveu meu problema, VALEW MESMO.
Cara, absolutepage nao funciona no MYSQL.
Vlw