Ciao a tutti voleco chiedervi una mano perchè è da giorni e giorni che ci sbatto su! Ho fatto un piccolissimo motore di ricerca per il mio sito e vorrei che quando ci sono i risultati faccia anche la paginazione. Ho visto tutti gli esempi possibili ma non sono riuscito ad applicarli! Potreste aiutarmi? Graziee!!

<%@LANGUAGE = JScript%>
<%
Response.Buffer = true;
var Cn = new ActiveXObject("ADODB.Connection");
Cn.Open("driver={Microsoft Access Driver (*.mdb)};dbq=" + Server.MapPath("*****************"));
var testo = new String(Server.HTMLEncode(Request.QueryString("stri ng")));
var r_testo = testo.replace(/'/g,"''");
var cerca = r_testo.split(" ");
var sql = "SELECT * FROM table WHERE ";
for (var e=0; e<cerca.length; e++)
{
if (e > 0) sql += " AND";
sql += " Description LIKE '%" + cerca[e] + "%'";
}
var Mostra = Cn.Execute(sql);

if (testo != "undefined") {
if (testo == "" || testo == "undefined" || testo.charAt(0) == " ")
{
}
else if (Mostra.EOF)
{
Response.Write("Nessun risultato");
}
else
{
while (!Mostra.EOF)
{
with (Response)
{
%>

Poi qui va il codice html per i risultati....

<%
Mostra.MoveNext();
}
}
}
}
Cn.Close()
%>