[原创]我的分页代码
<%totalPut=rs.recordcount
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*maxput>totalput then
if (totalPut mod maxput)=0 then
currentpage= totalPut \ maxput
else
currentpage= totalPut \ maxput + 1
end if
end if
if currentPage=1 then
else
if (currentPage-1)*maxputrs.move (currentPage-1)*maxput
bookmark=rs.bookmark
else
currentPage=1
end if
end if
showContent
rs.close
end if
set rs=nothing
conn.close
set conn=nothing
fid=0
%>
另外 自行设定 sub showcontent的内容 和定义 totalput maxput 。。。等相关变量
本分页 我所有asp程序都用这个
速度 很快!很经典的分页代码
最先是 动网文章的分页代码!
被我修改过很多次的了