请教高手一个关于ASP的问题 困扰了偶好久
我做了一个会员注册系统,注册完后显示:用户注册成功!返回首页, 但当我点击返回首页的时候 出现错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: '[object]'
/ishop/denglu.asp, 第 46 行
查看了denglu.asp文件,当查不出来有什么错,是不是跟数据库类型有关系,我用的是SQL SERVER 2000数据库,我的denglu.asp代码如下:
<table width="192" border="0" align="center" cellpadding="2" cellspacing="0" >
<%if request.Cookies("bjx")("username")="" then%>
<form name="userlogin" method="post" action="checkuserlogin.asp">
<tr>
<td align="center" bgcolor="#FFFFFF"><font color="#000073">您好!购买商品请先登录</font></td>
</tr>
<tr>
<td align="center"><font color="#000073">用户名:</font>
<input type="text" class="wenbenkuang" name="username" size="14">
</td>
</tr>
<tr>
<td align="center"><font color="#000073">密 码:</font>
<input type="password" class="wenbenkuang" name="userpassword" size="14">
</td>
</tr>
<tr>
<td align="center"><font color="#000073">验证码:</font>
<input class=wenbenkuang name=verifycode type=text value="<%If GetCode=9999 Then Response.Write "9999"%>" maxLength=4 size=6 style="color:#000073">
<img src=GetCode.asp>
</td>
</tr>
<tr>
<td align="center" height="38">
<input class=go-wenbenkuang name="imageField" value="登 陆" type=submit onFocus="this.blur()" style="color:#000073">
<input class=go-wenbenkuang onclick="window.location='reg.asp'" type=reset value="注 册" name=Submit2 style="color:#000073">
<input class=go-wenbenkuang onclick="window.location='getpwd.asp'" type=button value="忘 密" name=Submit3 style="color:#000073">
</td>
</tr>
</form>
<%else%>
<tr>
<td align="center" height="38"><%
set rs=server.createobject("adodb.recordset")
rs.open "select jifen,yucun,reglx,vipdate from [user] where username='"&request.Cookies("bjx")("username")&"'",conn,1,3
if rs("vipdate")<>"" then
'看是不是过期VIP
if rs("vipdate")<date and rs("reglx")=2 then
rs("reglx")=1
rs.update
end if
end if
46行: response.Cookies("bjx")("yucun")=rs("yucun")
47 response.Cookies("bjx")("jifen")=rs("jifen")
48 response.Cookies("bjx")("reglx")=rs("reglx")
rs.close
set rs=nothing
if request.Cookies("bjx")("reglx")=2 then
response.write ""&request.Cookies("bjx")("username")&" 贵宾您好<br>您目前有"&request.Cookies("bjx")("jifen")&"积分,预存款"&request.Cookies("bjx")("yucun")&"元 "
else
response.write ""&request.Cookies("bjx")("username")&" 您好<br>您目前有"&request.Cookies("bjx")("jifen")&"积分,预存款"&request.Cookies("bjx")("yucun")&"元 "
end if
response.write "<br><a href=user.asp><font color=red>进入会员中心</font></a>"
response.write "<br><a href=logout.asp>注销退出</a>"
end if
%></td>
</tr>
<tr>
<td height="16" align="center" ></td>
</tr>
</table>
请帮忙看下,这问题一直解决不了 谢谢,本人刚学ASP