frontpage2003完整版:asp错误代码帮忙分析一下(内详)

来源:百度文库 编辑:高考问答 时间:2024/04/28 03:48:11
网站后台点增加产品时出错.是什么原因.出错代码如下.
HTTP 错误 500.100 - 内部服务器错误 - ASP 错误
Internet 信息服务

--------------------------------------------------------------------------------

技术信息(用于支持人员)

错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: 'Rs'
/3/system/add_product.asp, 第 37 行

浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

网页:
GET /3/system/add_product.asp

add_product.asp代码如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="check_enter.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="f01.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-image: url(images/bg.gif);
}
.style1 {color: #990066}
-->
</style></head>

<body bgcolor="#F4F5FF">
<table width="600" border="0" align="center">
<tr>
<td valign="top"><form action="Upfile_Photo.asp" method="post" name="form1" onSubmit="return check()" enctype="multipart/form-data">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="140"><div align="right"><strong><span class="unnamed1 style1">*</span> </strong>选择要上传的图片:</div></td>
<td width="350"><input name="FileName" type="FILE" class="input" size="30">
<input type="submit" name="Submit" value="上传" style="border:1px double rgb(88,88,88);font:9pt">
</td>
</tr>
</table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
应该是这一行有问题
<td><img src="../images/pro/<%=Rs("pro_photo")%>" width="150" height="225" /></td>

上帝,一行ASP代码都看不到,尽给我们静态代码.你叫我们怎么回答你呀.昏

MicrosoftVBScript 运行时错误(0x800A000D)-->类型不匹配
ADODB.Recordset(0x800A000D)-->错误引用rs变量(rs对像已关闭或未定义)

第 37 行 是什么??

晕,我一行代码都看不见,只知道你读取数据库时出了问题.
就是你的Recordset对象出了问题.