为什么我这个显示不了页的内容啊
只显示第几页但是没有内容,而且一按第几页就错误了
那位高手帮我看看
谢谢啊
<!--#include file="conn.asp"-->
<table width="748" border="0" align="center">
<tr bgcolor="#CCCCCC">
<td>标题</td>
<td>有效日期</td>
<td>联系人</td>
<td>联系方式</td>
</tr>
<%
dim objrs ,sql
sql="select proname, data,person,tel from tbbuy"
set objrs =server.createobject("adodb.recordset")
objrs.open sql ,cnn ,1,1
sub showpage objrs,pageno
objrs.absolutepage=pageno
for i=1 to objrs.pagesize
response.write "<TR><td>"&objrs("proname")&"</td>"
response.write "<td>"&objrs("data")&"</td>"
response.write"<td>"&objrs("person")&"</td>"
response.write"<td>"&objrs("tel")&"</td></tr>"
objrs.movenext
if objrs.eof then exit for
next
end sub
objrs.pagesize=3
for i=1 to objrs.pagecount
response.write"<A HREF='paging.asp?page="&i&"'>"&i&" "&""
next
pageno=request("page")
if pageno<>""then
showpage objrs.pageno
end if
response.write "共"&objrs.pagecount&"页"
objrs.close
set objrs=nothing
cnn.close
set cnn=nothing
%>
</table>