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

[求助]这个ASP分页错在那里???

[复制链接]
发表于 2010-1-14 07:20:52 | 显示全部楼层 |阅读模式 IP:江苏扬州
<!-- #include file="conn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtdhttp://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<%
idd=request("id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from product2 where idd='"&idd&"' order by idd desc",conn,1,1
rs.pagesize=3
page=1
if not isempty(Request.querystring("page")) then
page=csng(request.querystring("page"))
if page>rs.pagecount then
page=rs.pagecount
elseif page<1 then
page=1
end if
end if
if not rs.eof then
rs.AbsolutePage=cint(page)
end if
%>
<body>
<table width="293" border="1" align="center">
<tr>
<td width="83">&nbsp;</td>
<td width="85">&nbsp;</td>
<td width="103">&nbsp;</td>
</tr>
</table>
<% for i=1 to rs.pagesize %>
<table width="293" border="1" align="center">
<tr>
<td width="83"><%=rs("num")%></td>
<td width="85"><%=rs("name")%></td>
<td width="103"><%=rs("photo")%></td>
</tr>
</table>
<%
rs.movenext
next
%>
<a href="曹志平.asp?page=<%=page-1%>">上一页</a>
<a href="曹志平.asp?page=<%=page+1%>">下一页</a>
<%
rs.close
%>
</body>
</html>
错误类型:
ADODB.Field (0x80020009)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/mingbo/曹志平.asp
如果我把
if not rs.eof then
rs.AbsolutePage=cint(page)
end if
该为
rs.AbsolutePage=cint(page)
提示参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/mingbo/曹志平.asp, 第 24 行
rs.AbsolutePage=cint(page)这就是24行
各位大哥大姐,我不知道错在那里,帮我看看错在那里
发表于 2010-1-14 07:20:56 | 显示全部楼层 IP:江苏扬州
if not (rs.eof and rs.bof) then
这样测试一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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