Microsoft VBScript 运行时错误 (0x800A01A8)缺少对象: 'session(...)'/iconshop/buy.asp, 第 29 行

来源:百度知道 编辑:UC知道 时间:2024/06/15 05:04:06
技术信息(用于支持人员)

错误类型:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象: 'session(...)'
/iconshop/buy.asp, 第 29 行

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

网页:
GET /iconshop/buy.asp

时间:
2006年12月17日, 20:47:12

详细信息:
Microsoft 支持

源文件码如下,这个一个头像商店的文件
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>请稍候......</title>
<STYLE type=text/css>
A:link {COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:visited { COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:active { COLOR: #ff0000; FONT-F

set thedict=session(\"dict\")
set?
另外像:if errormsg<>\"\" then response.redirect\"shop.asp\" end if
上面有两句,都是错误的。

if *?* then x后是不需要带end if的.
asp中除了声明组件外,好象没set的。thedict=session(\"dict\")就可以了,干嘛还带个set呢?

你这个对象session(...)有没有定义?

if errormsg<>\"\" then response.redirect\"shop.asp\" end if

if errormsg<>\"\" then response.redirect\"shop.asp\"

或者写成:

if errormsg<>\"\" then

response.redirect\"shop.asp\"

end if

set thedict=session(\"dict\")

如果你是要给session(\"dict\")赋值应该是session(\"dict\")=thedict

如果要给thedict赋值应该是thedict=session(\"dict\")