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

谁来指点下我的asp分页

[复制链接]
发表于 2010-1-19 07:25:05 | 显示全部楼层 |阅读模式 IP:江苏扬州
个为大哥帮我看看我这个分页程序错在那里
第一个页面 这是曹志平.asp页面

<!-- #include file="conn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from product1"
set rs=conn.execute(sql)
do while not rs.eof
%>
<body>
<table width="200" border="1" align="center">
<tr>
<td height="39"><a href="曹志平.asp?id=<%=rs("id")%>"><%=rs("name")%></a></td>
</tr>
</table>
<%
rs.movenext
loop
%>
</body>
</html>
第二个页面 这是曹志平1.asp页面
<!-- #include file="conn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://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")
'sql="select * from product2"
'set rs=conn.execute(sql)
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
rs.AbsolutePage=page
%>
<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.Recordset (0x800A0BB9)
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/mingbo/曹志平.asp, 第 24 行

浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
GET /mingbo/曹志平.asp
时间:
2006年4月1日, 14:58:35

详细信息:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-30 15:23 , Processed in 0.176509 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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