文档介绍:ASP数据访问-记录显示的分页
:
<%
set conn=("")
"Provider=;Data Source="&("")
%>
:
<!--#include file=""-->
<%
exec="select * from users"
set rs=("")
exec,conn,1,1
=2
size=
pagecount=
page=int(("page"))
if ("page")="" then page=1
if page<1 then page=1
if page> then page=
=page
%>
<table border="1" cellspacing="1">
<tr>
<td width="60">编号</td>
<td width="100">姓名</td>
<td width="100">电话</td>
<td width="100">城市</td>
</tr>
</table>
<hr>
<%
for i=0 to size-1
if not then
%>
<table border="1" cellspacing="1">
<tr>
<td width="60"><%=rs("id")%></td>
<td width="100"><%=rs("n