求asp 分页显示程序

来源:百度知道 编辑:UC知道 时间:2024/06/08 02:34:27
求一个图中效果的程序,asp的

你看这个行不行:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.STYLE3 {color: #FFFFFF}
.STYLE5 {
font-size: 9pt;
color: #000000;
font-weight: bold;
}
.STYLE7 {color: #000000; font-size: 9pt; }
.STYLE8 {color: #FF0000; font-size: 9pt; }
.STYLE9 {color: #33ff00; font-size: 9pt; }
-->
</style>
<%'开始分页
'每页最大个数(是用来控制条数)
Const MaxPerPage=20
'记录总数
dim totalPut
'当前页
dim CurrentPage
'总共页数
dim TotalPages
dim j
dim sql
'isempty 函数指明变量是否初始化Not是不为空
if Not isempty(request("page")) then
'存在值,则将其转换为数字
currentPage=Cint(request("page"))
else
'当没有任何值的时候赋值为1
currentPage=1