请教(在线等,成功就结帐)
本人在查询表格里设置了一个框。在框里你输入页数,按center他就会出现在第二页。(每页8个)。不知道为什么我只可以查询第一页的!在第一页输入第2页只出现第一页。在第3页输入第2页还是出现第一页的!
请教各位!!
<td align="center" bgcolor="#ffffff">
<%
if page<>1 then %>
<font color="#ff0000"><a href=<%=myself%>?page=1><span class="f1"><font color="#ff0000">第一页</font></span></a>
</font><span class="f1"><a href=<%=myself%>?page=<%=(page-1)%>>上一页</a></span>
<%
end if
if page<>rs1.pagecount then
%>
<a href=<%=myself%>?page=<%=(page+1)%>>下一页</a> <a href=<%=myself%>?page=<%=rs1.pagecount%>>最后一页</a>
<% end if %>
<font style="font-size:9pt"> <font color="#ff0000">输入页次:</font></font>
<input type=text name=page22 size=3 class="border" >
<font style="font-size:9pt" color="#ff0000">页次:</font><font color="#ff0000"><%=page%>/<%=rs1.pagecount%></font><font color="#ff0000">
共有记录</font><font style="font-size:9pt"><font color="#ff0000"><%=rs1.recordcount%></font><font color="#ff0000">条</font></font>
</td>
推荐阅读
end if
response.write "<td> <font color=#ff0000>" & page & "</font>/" & rs.pagecount & "</td>"
response.write "<td> " & rs.pagesize & "篇/页</td>"
response.write "<td> <input type=text name=page size=4 class=input value="& page &"> <input type=submit value=转到 name=ok></td>"
response.write "</tr></table></form>"
else
response.write "<br>暂无该信息"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</div>


讨论区