分页显示问题
我写的一段分页代码,奇怪,我的第一页能显示,当我点击第二页或者前一页或者末页或者首页都是一片空白????怎么了,请各位大虾帮我解决一下!!代码如下:<table>
<tr><td>
<%dim rs,sql,no,over,page
no=request.form("no")
over=request.form("over")
set rs=server.CreateObject("adodb.recordset")
if over<>"" then
sql="select * from [nd_msg] order by [do_man] desc"
rs.open sql,conn,1,3
rs.pagesize=20
page=cint(request("page"))
if page<=0 then page=1
if page="" then page=1
rs.absolutepage=page
if rs("do_type")=1 then
%>
<table border="1" width="750" cellpadding="0" cellspacing="0" bordercolorlight="#000000">
<tr>
<td align="center" colspan="11"><span class="STYLE1"><strong>任务需求信息表</strong></span></td>
</tr>
<tr bgcolor="#3399FF" align="center">
<td align="center">编号</td>
<td>需求人</td>
<td>需求部门</td>
<td>需求人电话</td>
<td>需求完成时间</td>
<td>故障标题</td>
<td>分配状态</td>
<td>分配完成时间</td>
<td>执行人</td>
<td>完成状态</td>
<td>完成结果</td>
</tr>
<%for i=0 to rs.pagesize-1
if rs.bof or rs.eof then exit for%>
<tr>
<td height="20" align="center"><%=rs(0).value%></td>
<td><%=left(rs(1).value,3)%></td>
<td><%=rs(3).value%></td>
<td><%=rs(4).value%></td>
<td><%=rs(5).value%></td>
<td><%=left(rs(6).value,8)%></td>
<%if rs("agn_type")=1 then %>
<td align="center">已分配</td>
<%else%>
<td align="center">未分配</td>
<%end if%>
<td><%=rs(9).value%></td>
<td><%=rs(8).value%></td>
<td align="center">已完成</td>
<td><div align="center"><a href="viewresult.asp?id=<%=rs("id")%>">详情</a></div></td>
</tr></tr>
<%rs.movenext()
next
%>
</table>
<p align="center">
<%if page < rs.pagecount then%>
<a href="index_rwxqxx_chk.asp?page=1">首页|</a>
<a href="index_rwxqxx_chk.asp?page=<%=page-1%>">前一页|</a>
<a href="index_rwxqxx_chk.asp?page=<%=page+1%>">后一页|</a>
<a href="index_rwxqxx_chk.asp?page=<%=rs.pagecount%>">末页</a>
<%else if page=rs.pagecount then%>
<a href="index_rwxqxx_chk.asp?page=1">首页|</a>
<a href="index_rwxqxx_chk.asp?page=<%=page-1%>">前一页|</a>
<a href="index_rwxqxx_chk.asp?page=<%=rs.pagecount%>">后一页|</a>
<a href="index_rwxqxx_chk.asp?page=<%=rs.pagecount%>">末页</a>
<%end if
end if%>
</p>
<p align="center">现在是第<%=page%>页 总共<%=rs.pagecount%>页</p><p align="right"><form action=""
method="post" name="form1">
<input name="over" type="submit" class="bg" value="已完成">
</form><form name="form2" method="post" action="index_renwuxuqiuxinxi.asp"><input name="no"
type="submit" class="bg" value="未完成">
</form></p>
<%end if
end if
conn.close
%>
</td></tr>
</table>
当我点击下一页或者首页什么的,就一片空白,我怀疑是被表格覆盖了内容,但是…………………………嗨,烦请各位大虾帮忙…………………………