这个里面哪个代表每页最多显示记录数啊?我一直也没弄明白,请高手指点下,如果没有,看看该怎么加个,谢谢!
rs.open sql,dsconn,3,1
if not rs.eof then
pagecount=rs.pagecount
if request("id")=null or request("id")="" then
page=1
else
page=int(request("id"))
end if
if page>=rs.pagecount then
page=rs.pagecount
elseif page<=1 then
page=1
end if
rs.absolutepage=page
else
pagecount=1
page=1
end if
'*******************显示文章
do while not rs.eof
call list
a=a+1
rs.movenext
loop
'*******************显示文章数量,页面等信息
addr0=request.servervariables("server_name")
addr1=request.servervariables("url")
addr="http://"&addr0&addr1
response.write "<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='100%'><tr><td align=center>"
if page>1 then response.write "<a href='"&addr&"?id="&int(page-1)&"'>上一页</a>"
if page<pagecount then response.write " <a href='"&addr&"?id="&int(page+1)&"'>下一页</a>"
response.write " 文章:<font color=red>"&rs.recordcount&"</font>篇"
response.write " 每页显示<font color=red>10</font>篇"
response.write " 页数:<font color=red>"&page&"</font>/"&pagecount
response.write "</tr></td></table>"
response.write "</table>"
rs.close
call rsclose
call dsconnclose