<!--#include file="conn.asp"-->
<%var page,recordnum,a,pagecount1;
var rs=Server.CreateObject("adodb.recordset");
rs.Source="select 公司名称,车牌号 from 出租车车辆入网表 order by 车牌号 ";
rs.ActiveConnection=conn;
rs.CursorType =3;
// rs.CursorLocation = 2;
//rs.LockType = 1;
rs.Open();
rs.PageSize=10;
page=Request.QueryString("page");
if(page<1)
page=1;
if(page>rs.PageCount)
page=rs.PageCount;
rs.AbsolutePage=page;//就错在这里,提示为参数不匹配
Response.Write(rs.PageSize);
Response.Write(rs.RecordCount);
Response.Write(rs.PageCount);
Response.Write(page);
%>
<p align="CENTER">
<a Href="c.asp?Page=<%=1%>">首页</a>
<a Href="c.asp?Page=<%=page-1%>">上一页</a>
<a Href="c.asp?Page=<%=page+1%>">下一页</a>
<a Href="c.asp?Page=<%=rs.PageCount%>">尾页</a>
共<%=rs.RecordCount%>条纪录目前为第<%=page%>页/共<%=rs.PageCount%>页
</p>
<%
rs.Close();
conn.Close();
%>