点击按钮“下一页”“上一页”就转到下一页或上页的问题,马上结贴。
我的数据库因记录条数太多,我使用了分页,现在我想用按钮来实现多页之间的跳转,原来的程序是这样的:
<% if session("currentpage")>=1 then %>
<A href="PRI.asp?move=prev">[上一页]</a>
<%end if %>
<% if session("currentpage")<=rs.pagecount then %>
<A href="PRI.asp?move=next">[下一页]</a>
<% else
session("currentpage")=rs.pagecount
%>
<%end if %>
现在我想用按钮来实现这一效果,怎么来编写代码?急