连接语句...
if not isempty(request("page")) then
pagecount=cint(request("page"))
else
pagecount=1
end if
i=1
rs.pagesize=24
rs.AbsolutePage=pagecount
if rs.eof and rs.bof then
response.write "<center>没有资料,请添加</center>"
end if
do while not rs.eof
列表....
rs.movenext
i=i+1
if i>rs.pagesize then exit do
loop
结束...
<form action="#" method="get" id="form1" name="form1">
<div id="pagefy">每页显示<%=rs.pagesize%>条 页次: <b><font color="red"><%=pagecount%></font>/<%=rs.pagecount%></b>
<% if pagecount=1 and rs.pagecount<>pagecount and rs.pagecount<>0 then%>
<a href="?page=<%=cstr(pagecount+1)%>">下一页</a>
<% end if %>
<% if rs.pagecount>1 and rs.pagecount=pagecount then %>
<a href="?page=<%=cstr(pagecount-1)%>">上一页</a>
<%end if%>
<% if pagecount<>1 and rs.pagecount<>pagecount then%>
<a href="?page=<%=cstr(pagecount-1)%>">上一页</a> <a href="?page=<%=cstr(pagecount+1)%>">下一页</a>
<%end if%>
</div>
</form>
感谢:jude_lau