之前显示正常,为实现自动登录,加入2-5行代码后,提示以上错误!!求助!
1 <%
2 if request.Cookies("username")<>"" then
3 Session("MM_username")=request.Cookies("username")
4 session("MM_UserAuthorization")=request.Cookies("class")
5end if
6if Session("MM_username")="" then
7 response.Write("宏通厂欢迎你! <a href=login.asp>登录网站</a>")
8 elseif session("MM_UserAuthorization")=1 then
9 response.write("您好!"&session("MM_username")&"<a 10href=admin\index.html> 后台管理</a>"&"<a 11href=loginout.asp> 注销</a>")
12 else
13 response.Write("您好!"&Session("MM_username")&"<a 14href=loginout.asp>注销</a>")
15 end if
16%>
搞定了。谢谢
错误类型: Microsoft VBScript 运行时错误 (0x800A000D) 类型不匹配: '[string: ""]' /index.as
答案:1 悬赏:60 手机版
解决时间 2021-03-17 01:24
- 提问者网友:你给我的爱
- 2021-03-16 16:44
最佳答案
- 五星知识达人网友:一袍清酒付
- 2021-03-16 16:55
8 elseif session("MM_UserAuthorization")=1 then
改成
8 elseif session("MM_UserAuthorization")=“1” then
试下吧
改成
8 elseif session("MM_UserAuthorization")=“1” then
试下吧
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯