首页 相关文章 模仿PHP写的ASP分页

模仿PHP写的ASP分页

<%
' 分页程序
' total_records 总记录数
' everypage_records 每页显示条数
' current_page 当前页数
' url 要传递的url,这里可以含有要传递的变量,比如 "list.asp?" 或者"list.asp?keyword=key&"
' 程序调用比较简单,不过还是比PHP的麻烦,继续努力中

sub show_page(total_records,everypage_records,current_page,url)

if IsNumeric (total_records) then
total_records=Int(total_records)
else
total_records=0
end if

if IsNumeric (everypage_records) then
everypage_records=Int(everypage_records)
if everypage_records<=0 then
everypage_records=10
en...[ 查看全文 ]

2016-01-29 标签:

模仿PHP写的ASP分页的相关文章

手机页面
收藏网站 回到头部