ASP查询结果分页显示
num=cint(request("num"))if num<1 then num=8rs.pagesize=numresponse.write "<br><table><tr bgcolor='#CCFFCC'><td width='50'>编号</td><td width='50'>帐号</td><td width='50'>姓名</td><td width='50'>密码</td><td width='120'>负责单位</td><td width='80'>电话</td><td width='150'>备注</td></tr><tr>"page=cint(request("page"))if page<1 then page=1if page>rs.pagecount then page=rs.pagecountfor i=0 to rs.fields.count-1nextrs.absolutepage=pagefor t=1 to rs.pagesize if rs.eof then exit for for i=0 to rs.fields.count-1 response.write "<td>" &rs(i)& "</td>" next response.write "</tr>" rs.movenextnextresponse.write "</tr></table>" if page<>1 then response.write "<a href=cx_admin_hycheck.asp?page=1>第一页</a>"response.write "<a href=cx_admin_hycheck.asp?page="&page-1&">上一页</a>"end ifif page<>rs.pagecount then response.write "<a href=cx_admin_hycheck.asp?page="&page+1&">下一页</a>"response.write "<a href=cx_admin_hycheck.asp?page="&rs.pagecount&">最后一页</a>"end ifresponse.write "<br>"for thepage=1 to rs.pagecountif thepage<10 thenresponse.write "<a href=cx_admin_hycheck.asp?page="&thepage&">0"&thepage&" </a>"elseresponse.write "<a href=cx_admin_hycheck.asp?page="&thepage&">"&thepage&" </a>"end ifnext%>---------------------------------------------我的分页显示代码, 为什么我查询后,点页数或上一页,下一页,就变成了整个数据库的分页显示,而不是我查询后的数据的分页显示..高手帮帮看看 ....