不好意思!
外科(<%=rootRs.RecordCount %>): </STRONG>第 <SELECT
id=select1 name=select1 onchange=location=this.options[this.selectedIndex].value >
<% If rootRs.pagecount>1 then
rootRs.AbsolutePage=Request.QueryString
%>
<option selected value="<%=Request.QueryString%>"><%=Request.QueryString%></option>
<%
For i=1 to rootRs.pagecount
%>
<option value="index.asp?<%=i%>" ><%Response.Write i%></option>
<%
Next
end if%>
</SELECT><FONT size=2><FONT
size=3>页</FONT></p>
<% If rootRs.pagecount>1 then
For i=1 to rootRs.pagecount
%>
<option value="<%=i%>"><%Response.Write i%></option>
<%
Next
end if%>
</SELECT><FONT size=2><FONT
size=3>页</FONT></p>
<body>
<%
sql="select * from jifei"
dsn="dsn=access"
mypage=request.querystring("whichpage")
if mypage="" then
mypage=1
end if
mypagesize=request.querystring("pagesize")
if mypagesize="" then
mypagesize=10
end if
set rstemp=server.createobject("adodb.recordset")
rstemp.cachesize=5
rstemp.open sql,dsn,adopenstatic
rstemp.movefirst
rstemp.pagesize=mypagesize
maxcount=cint(rstemp.pagecount)
rstemp.absolutepage=mypage
howmanyrecs=0
howmanyfields=rstemp.fields.count-1
response.write "Page "&mypage&" of "&maxcount&"<br>"
%>
<table border=1>
<tr>
<%
for i=0 to howmanyfields
%>
<td><b>
<% =rstemp(i).name %>
</B></TD>
<% next %>
</tr>
<% do while not rstemp.eof and howmanyrecs<rstemp.pagesize %>
<tr>
<% for i=0 to howmanyfields
%>
<td valign=top>
<% =rstemp(i) %></td>
<% next %>
</tr>
<%
rstemp.movenext
howmanyrecs=howmanyrecs+1
loop
rstemp.close
set rstemp=nothing
%>
</table><p>
<%
pad="00"
scriptname=request.servervariables("script_name")
for counter=1 to maxcount
if counter>=10 then
pad="0"
end if
if counter>=100 then
pad=""
end if
ref="<a href="&scriptname&"?whichpage="&counter
ref=ref&"&pagesize="&mypagesize&">"&pad&counter&"</A>"
response.write ref&" "
if counter mod 20=0 then
response.write "<br>"
end if
next
%>