asp分页无法跳转 <%Set rs = Server.CreateObject("ADODB.Recordset") '定义Recordset对象

有哪位高手能帮忙解决一下 我的代码为什么不能实现跳转,总是停留在第一页
必须要有一个参数来说明当前是第几雀陵页,并把这个参数放进rs.absolutepage中顷物戚。一般情况下,这个参数是附带在url后台的,比如:abce.asp?classid=3&page=1
在程序中,先把page参数取出来。
page=request("page")
并且检查page,是否为数字,如果不是数字或为空就设置为1,即起始页
if not isint(page) then '蚂顷注意:isint为检查是否为数字的函数,请自己写此函数,或用其它函数代替
page=1
else
page=clng(page)
end if
最后把page参数附加进rs就可以了

rs.pagesize=20
if rs.recordcount>0 then
if page<1 then page=1
if page=null then page=1
if page>rs.pagecount then page=rs.pagecount
rs.absolutepage=page
end if
没有带参数