分页的疑惑。解决了给分!
我用ACCESS+ASP实现分页功能,程序结构是这样的.
login.htm中有个表单<input type=text name="querymonth">,通过POST方式提交到show.asp.
show.asp中根据用户输入的月份查询数据库记录,然后分页显示出来.显示格式是首页、上一页、下一页、末页。show.asp分页连接的代码如下:
<%
if Current_Page <> 1 then
%>
<A Href=show.asp?ToPage=1>第一页</A>
<A Href=show.asp?ToPage=<% = Current_Page - 1%>>上一页</A>
<%
end if
if Current_Page <> RS.PageCount then
%>
<A Href=show.asp?ToPage=<% = Current_Page + 1%>>下一页</A>
<A Href=show.asp?ToPage=<% = RS.PageCount%>>最后一页</A>
<%
end if
%>
点下一页时不能正常显示,哪儿有问题,请指教。谢了!!