为什么点下一页或上一页都会提示找不到网页呢?
<%
cc=request.form( "kok ")
if cc= "ok " then
set conn=server.createobject( "adodb.connection ")
conn.open "driver={Microsoft Access driver (*.mdb)};dbq= "&server.mappath( "kk.mdb ")
exec= "select * from beok "
set rs=server.createobject( "adodb.recordset ")
rs.open exec,conn,1,3
page=2
rs.pagesize=8
counts=5
allpages=rs.pagecount
rs.absolutepage=page
do while (not rs.eof) and counts> 0 %>
<table width= "536 " height= "235 " border= "1 " cellpadding= "1 " cellspacing= "0 " bordercolor= "#CCCCCC " bgcolor= "#FFFFFF ">
<tr bgcolor= "#FFFFFF ">
<td> ÐÕÃû </td>
<td> ±¸×¢ </td>
<td> </td>
</tr>
<tr bgcolor= "#FFFFFF ">
<td> <%=rs( "min ")%> </td>
<td> <%=rs( "xin ")%> </td>
<td> </td>
</tr>
<tr bgcolor= "#FFFFFF ">
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<%
counts=counts-1
rs.movenext
if rs.eof then exit do
loop
end if
if page=2 then
response.write " <font color=darkgray> prvious button </font> "
else
response.write " <a href=pageview.asp?page=1> home </a> <a href=pageview.asp?page= "&page-1& "> previous </a> "
end if
if page=allpages then
response.write " <font color=red> nextpage home </font> "
else
response.write " <a href=pageview.asp?page= "&page+1& "> next page </a> <a href=pageview.asp?page= "&allpages& "> button </a> "
end if
%>
为什么点下一页或上一页都会提示找不到网页呢?
------解决方案--------------------那肯定是连接错了,看看有没打错字