找回密码
 注册
搜索
热搜: 回贴
  • 前程无忧官网首页 有什么好的平台可以
  • 最新的销售平台 互联网营销的平台有哪
  • 制作网页的基本流程 网页制作和网页设
  • 【帝国CMS】输出带序号的列表(数字排
  • 网站建设公司 三一,中联,极东泵车的
  • 织梦 建站 织梦网站模版后台怎么更改
  • 云服务官网 哪些网站有免费的简历模板
  • 如何建网站要什么条件 建网站要用什么
  • 吉林市移动公司电话 吉林省退休人员网
  • 设计类毕业论文 网站设计与实现毕业论
查看: 124|回复: 1

分页问题 都打不开后面的页 只能看一页

[复制链接]
发表于 2010-1-20 03:21:23 | 显示全部楼层 |阅读模式 IP:江苏扬州
<!--#include file="conndb.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>查看信息</title>
<link rel=stylesheet href="style.css" type="text/css">
</head>
<body bgcolor="#84A6C5" style="text-align: right">
<div align="center">
<font color="#00FFFF">报修信息总汇</font><table border="0" width="315" cellspacing="0" cellpadding="0">
<tr>
<td width="77%"><span style="font-size: 9pt"><font color="#00FFFF"><%
set rs=server.createobject("adodb.recordset")
sql="select * from fwwxdj order by id desc"
rs.open sql,conn,3,1
if Not(rs.bof and rs.eof) then'判别数据表中是否为空记录
NumRecord=rs.recordcount
rs.pagesize=600
NumPage=rs.Pagecount
if request("page")=empty then
NoncePage=1
else
if Cint(request("page"))<1 then
NoncePage=1
else
NoncePage=request("page")
end if
if Cint(Trim(request("page")))>Cint(NumPage) then NoncePage=NumPage
end if
else
NumRecord=0
NumPage=0
NoncePage=0
end if
%>
</font>
</span>
<div align="center">
<table border="0" width="963" bordercolorlight="#84A6C5" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF" height="61">
<%if Not(rs.bof and rs.eof) then
rs.move (Cint(NoncePage)-1)*10,1
for i=1 to rs.pagesize
%>
<tr>
<td>
<table border="1" width="100%" id="table1" cellspacing="0" cellpadding="2">
<tr>
<td width="6%">
<p align="center"><font color="#00FFFF">地区</font></td>
<td width="12%"><font color="#FFFFFF"><%=rs("d_address")%></font></td>
<td width="6%">
<p align="center"><a href="jutixianshi.asp?id=<%=rs("id")%>"><font color="#00FFFF">具体地址</font></td>
<td width="27%"><font color="#FFFFFF"> <%=rs("x_address")%></font></td>
<td width="6%"><font color="#00FFFF">报修项目</font></td>
<td width="23%"><font color="#FFFFFF"> <%=rs("b_xiangmu")%></font></td>
<td width="14%" colspan="2"><a href="jutixianshi.asp?id=<%=rs("id")%>"><font color="#00FFFF">&nbsp;&nbsp;&nbsp;
查看具体信息</font></td>
</tr>
<tr>
<td width="6%">
<p align="center"><font color="#00FFFF">报修日期</font></td>
<td width="12%"><font color="#FFFFFF"><%=rs("b_time")%> </font></td>
<td width="6%">
<p align="center"><font color="#00FFFF">联系人</font></td>
<td width="27%"><font color="#FFFFFF"> <%=rs("b_name")%></font></td>
<td><font color="#00FFFF">联系电话</font></td>
<td><font color="#FFFFFF"><%=rs("b_phone")%></font></td>
<td width="7%">
<p align="center"><a href="xigai.asp?id=<%=rs("id")%>"><font color="#00FFFF">修改</font></td>
<td width="7%">
<p align="center"><a href="xxdel.asp?id=<%=rs("id")%>"><font color="#00FFFF">删除</font></td>
</tr>
</table>
</td>
</tr>
<% rs.movenext
if rs.eof then exit for
next
else
response.write "<tr><td colspan=13><marquee scrolldelay=120 behavior=alternate>没有找到任何记录!!!</marquee></td></tr>"
end if
rs.close
set rs=nothing
%>


</center>
</center>
</table>
</div>
</table>
</div>

<div align="center">
<table width="943" border="0" height="18" cellspacing="0" cellpadding="5">
<tr>
<td height="14">

<div align="right">
<span style="font-size: 9pt">
<font color="#00FFFF">
<input type="hidden" name="page" value="<%=NoncePage%>">
</font><font color="#00FFFF">
<%
if NoncePage>1 then
response.write "|<a href=viewxxgl.asp?page=1>首 页</a>| |<a href=viewxxgl.asp?page="&NoncePage-1&">上一页</a>|&nbsp"
else
response.write "|首 页| |上一页|&nbsp"
end if
if Cint(Trim(NoncePage))<Cint(Trim(NumPage)) then
response.write "|<a href=viewxxgl.asp?page="&NoncePage+1&">下一页</a>| |<a href=viewxxgl.asp?page="&NumPage&">尾 页</a>|"
[知识问答ωωω.χiuGoo.сom]
else
response.write "|下一页| |尾 页|"
end if
%>
&nbsp;页次:<%=NoncePage%>/<%=NumPage%>
共<%=NumRecord%>条记录&nbsp;
</font>
</span> </div>
</td>
</tr>
</table>
</div>
</body>
</html>
哪里出错啊 找了一星期了 都没找到 郁闷啊 万分感谢@

错误类型:
ADODB.Field (0x80020009)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/viewxxgl.asp
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-29 15:22 , Processed in 0.317426 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表