| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1912 人关注过本帖
标题:暂无记录 ! 错误 '80020009'
只看楼主 加入收藏
ie6ant
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2015-9-11
结帖率:0
收藏
 问题点数:0 回复次数:2 
暂无记录 ! 错误 '80020009'
暂无记录 ! 错误 '80020009'
/Download/ShowDownload.asp,行 24
出问题了,高手帮忙改一下,谢谢!

24行 :Downsclass=""&rsc("title")&""

<!--#include file="../Include/conn.asp" -->
<!--#include file="../Include/config.asp" -->
<!--#include file="../Include/Sql.Asp" -->
<!--#include file="../Include/zych_sql.asp"-->
<%
id=request.QueryString("id")
if id="" or not isnumeric(id) then
Response.Write "<script>alert('参数错误!');history.go(-1);</script>"
Response.End()
end if
set rsc=server.CreateObject("adodb.recordset")
if id="" then
exec="select * from download_fl"
else
exec="select * from download_fl where id="&id
end if
rsc.open exec,conn,1,1
if rsc.eof and rsc.bof then
response.Write("&nbsp;暂无记录 !")
end if
if id="" then
Downsclass=""
else
Downsclass=""&rsc("title")&""
end if
rsc.close
set rsc=nothing
set rs=server.createobject("adodb.recordset")
exec="select * from [download] where id="& id
rs.open exec,conn,1,1
if rs.eof then
response.Write "<div style=""padding:10px"">无记录!</div>"
response.End()
end if%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=rs("title")%>_<%=zych_home%></title>
<meta name="keywords" content="<%=zych_keywords%>" />
<meta name="description" content="<%=zych_description%>" />
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
<script type="text/javascript" src="<%=dir%>js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=dir%>js/dropdown.js"></script>
</head>
<body>
<!--#include file="../Include/top.asp" -->
<div class="main">
<div class="ad_flash"><%=zych_Flash()%></div>
<div class="bar"><b><%=zych_pd_class(wurl)%></b><span>当前位置:<a href="/">首页 ></a><a href="<%=dir%>Download/"><%=zych_class(wurl)%></a> > <%=rs("title")%></span></div>
<div class="w_650 fl">
<div class="position">
<table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#E1E1E1" style="border-collapse: collapse;line-height:30px;">
<tr>
<td height="30" colspan="2" align="center" bgcolor="#FFFFFF"  style="font-size:16px;font-weight:bold;color:#990000;text-align:center"><%=rs("title")%></td>
</tr>
<tr>
<td width="12%" align="right" bgcolor="#FFFFFF">程序语言:</td>
<td width="88%" align="left" bgcolor="#FFFFFF"><%=rs("yuyan")%></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF">运行平台:</td>
<td align="left" bgcolor="#FFFFFF"><%=rs("yxpt")%></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" >推荐等级:</td>
<td align="left" bgcolor="#FFFFFF" ><%=rs("tjdj")%></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" >程序大小:</td>
<td align="left" bgcolor="#FFFFFF" ><%=rs("daxiao")%><%=rs("danwei")%></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" >下载次数:</td>
<td align="left" bgcolor="#FFFFFF" ><%=rs("js")%> 次</td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" >程序介绍:</td>
<td align="left" bgcolor="#FFFFFF"><div style="font-size:12px; line-height:20px;"><%=rs("body")%></div></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" >发布日期:</td>
<td align="left" bgcolor="#FFFFFF" ><%=rs("data")%></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF" >下载地址:</td>
<td align="left" bgcolor="#FFFFFF"><input name="submit" type="submit" class="input" onClick="window.location.href='<%=dir%>Include/Showbody.asp?action=dowurl&id=<%=rs("id")%>' " value="点击下载" /></td>
</tr>
</table>
</div>
</div>
   
<div class="w_280 fr">
<div class="box">
<div class="title tubiao_D">下载分类 <span>Download Nav</span></div>
<ul class="list_2">
<%=zych_download_fl%>
</ul>
</div>
<!--#include file="../Include/left.asp" -->
</div>
</div>

<!--#include file="../Include/bottom.asp" -->
</body>
</html>
2015-09-28 10:19
hu9jj
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:红土地
等 级:贵宾
威 望:400
帖 子:11772
专家分:43421
注 册:2006-5-13
收藏
得分:0 
代码不是自己写的吧?
既然已经检测出“暂无记录”,再让后续代码执行&rsc("title")&,当然会出错啰。

活到老,学到老!http://www.(该域名已经被ISP盗卖了)E-mail:hu-jj@
2015-09-29 19:36
ie6ant
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2015-9-11
收藏
得分:0 
回复 2楼 hu9jj
呵呵,下的模板,在学习
2015-09-30 12:56
快速回复:暂无记录 ! 错误 '80020009'
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022098 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved