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

新手,不知道错在哪里

[复制链接]
发表于 2010-1-15 04:48:03 | 显示全部楼层 |阅读模式 IP:江苏扬州
我从网上下载了一个留言簿(申江留言本精简版),在家里调试能用,但上传到服务器后,第一次使用时能打开留言簿,再次就无法打开了,错误提示如下:
ADODB.Recordset 错误 '800a0e78'
对象关闭时,不允许操作。
/txtb/index.asp,行 111

相应页面的代码如下(无关代码已经删除),请大家帮助指点!
<!-- #include file="config.asp" -->
<!-- #include file="md5.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>《QS98软件室》留言簿</title>
<!-- #include file="style.asp" -->
</head>
<body>
<%
response.expires=-1
Dim cn,rs
set cn=server.CreateObject("ADODB.Connection")
set rs=server.CreateObject("ADODB.Recordset")
CreateConn cn,dbtype
Dim ItemsCount,PagesCount,CurrentItemsCount,ipage
get_divided_page cn,rs,"SELECT COUNT(id) FROM main","SELECT * FROM main","id DEC",Request.QueryString("page"),ItemsPerPage,ItemsCount,PagesCount,CurrentItemsCount,ipage
%>
<div align="<%=TableAlign%>">
<%while rs.EOF=false and Response.IsClientConnected%> '出错的代码行
<!-- #include file="listword.asp" -->
<%
rs.MoveNext
wend
%>
<table border="1" cellpadding="2" style="width:<%=TableWidth%>px; margin-top:20px; border-collapse:collapse; table-layout:fixed;" bordercolor="<%=TableBorderColor%>">
<tr style="height:25px; text-align:center;">
<td style="color: <%=TableTitleColor%>; font-weight: bold; background-color: <%=TableTitleBGC%>; background-image: url('image/bar_blue.gif')">
[留言分页]
</td>
</tr>
<tr>
<td style="color:<%=TableContentColor%>; padding:5px; vertical-align:top; background-color:<%=TableContentBGC%>;">
<%
for j=1 to PagesCount
if j=ipage then
Response.Write "<span style=""color:#FF0000"">[" &cstr(j)&"] </span>"
else
Response.Write "<a href=""index.asp?page=" & cstr(j) & """>[" &cstr(j)&"]</a> "
end if
next
%>
</td>
</tr>
</table>
</div>
<!-- #include file="top.asp" -->
<%
rs.Close
cn.Close
set rs=nothing
set cn=nothing
%>
</body>
发表于 2010-3-8 07:05:05 | 显示全部楼层 IP:香港
我要把这个帖子一直往上顶,往上顶!顶到所有人都看到为止
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-30 05:31 , Processed in 0.143877 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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