Microsoft VBScript 运行时错误 (0x800A01A8) 缺少对象: 'rs' /NEWS/Manage/Default.asp, 第 6 行

来源:百度知道 编辑:UC知道 时间:2024/06/27 18:07:56
<%@LANGUAGE="VBSCRIPT"%>
<!-- #include file="../Connections/conn.asp" -->
<%
sql="insert into tb_log(Name,Content,IssueDate) values('"&_
session("Admin")&"','成功登录后台管理页面','"&Now()&"')"
rs.open sql,conn
set rs=nothing
conn.close
set conn=nothing
%>
<table width="483" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20"> <table width="483" border="0" align="center" cellpadding="0" cellspacing="2">
<tr bgcolor="#214994">
<td width="37" height="20" bgcolor="#214994">
<div align="center" class="style6">ID</div></td>
<td width="294" ali

据推测,这是你的IIS没开启允许父目录的原因,所以这个ASP它找不到../Connections/conn.asp这个ASP文件,那么自然就会出现RS没声明的问题了.

没有建立记录集:
set rs=server.creatobject("adodb.recordset")
加在你的sql语句前

没有建立记录集