| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1457 人关注过本帖
标题:Microsoft VBScript 运行时错误 错误 '800a000d'类型不匹配: '[string: " ...
只看楼主 加入收藏
airfei
Rank: 1
等 级:新手上路
帖 子:137
专家分:0
注 册:2007-4-12
收藏
 问题点数:0 回复次数:5 
Microsoft VBScript 运行时错误 错误 '800a000d'类型不匹配: '[string: ""]'

请大家我、帮我看看怎么解决Microsoft VBScript 运行时错误 错误 '800a000d'类型不匹配: '[string: ""]'
/vod/admin/change.asp,行 5 的问题。

change.asp代码如下:

<!--#include file="../../check.asp"-->
<!--#include file="articleconn.asp"-->

<html>
<%if session("flag")>1 then ------这是第5行吧?!是不是这里错了哦
response.write "<script>alert('您的操作权限不够!');history.back();</script>"
response.end
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" type="text/css" href="css/css.css">
<title></title>
<style type=text/css>
body { background:#336699; margin:0px; font:9pt 宋体; }
table { border:0px; }
td { font:normal 12px 宋体; }
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover { color:#000000;text-decoration:underline; }
.sec_menu { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
.menu_title { }
.menu_title span { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
.menu_title2 { }
.menu_title2 span { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style>
</head>
<body bgcolor="#D6EF7E">
<%
dim rs,sql,sel
set rs=server.createobject("adodb.recordset")
sql="select * from password where id=1"
rs.open sql,conn,1,1
%>
<table border="0" align="center" cellspacing="0" cellpadding="3">
<tr>
<td bgcolor="#Fff000" height="30">
<p align="center"><b><font size="2">电影分类管理</font></b></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF"><font size="2">&nbsp;</font></td>
<%set rs=server.createobject("adodb.recordset")
sql="select * from type"
rs.open sql,conn,1,3
do while not rs.eof%>
</tr>
</form>
<form method="POST" onsubmit action="changeadmin.asp?typeid=<%=rs("typeid")%>">
<tr>
<td nowrap bgcolor="#FFFFFF">
<font size="2"><%=rs("type")%></font><font size="2">
<input type="text" name="typename" size="15">&nbsp;
<input type="submit" value="修改" name="change">
<input type="submit" value="删除" name="delet"></font></td>
</tr>
</form>
<% rs.movenext
loop
%>
<tr>
<td align="center" height="10"bgcolor="#FFFFFF"></td>
</tr>
<br>
</table>
<br>
<table border="0" width="300" align="center" cellspacing="0" cellpadding="0">
<form method="POST" onsubmit action="changeadmin.asp">
<tr>
<td align="center" height="35" nowrap bgcolor="#FFFFFF">
<font color=ff0000><b>添加分类</b>:</font>
<font size="2">
<input type="text" name="type" size="15">&nbsp; <input type="submit" value="开始添加" name="addname"></font></td>
</tr>
</form>
</table>
</body>


</body>
</html>



谢谢大家!!!

搜索更多相关主题的帖子: 时错误 Microsoft VBScript string 
2007-08-15 10:23
madpbpl
Rank: 4
等 级:贵宾
威 望:11
帖 子:2876
专家分:244
注 册:2007-4-5
收藏
得分:0 
session("flag")>1
改成
cint(session("flag"))>1
试试
2007-08-15 10:39
sidivefen
Rank: 1
等 级:新手上路
帖 子:23
专家分:0
注 册:2007-8-14
收藏
得分:0 
<%

if session("flag") > 1 then ------这是第5行吧?!是不是这里错了哦
response.write "<script>{ window.alert('您的操作权限不够!');window.history.go(-1);}</script>"
response.end
end if
%>
改这样看看
2007-08-15 10:53
airfei
Rank: 1
等 级:新手上路
帖 子:137
专家分:0
注 册:2007-4-12
收藏
得分:0 
<%if cint(session("flag"))>1 then
response.write "<script>alert('您的操作权限不够!');history.back();</script>"
response.end
end if

这样也不行,显示
类型不匹配: 'cint'

大家继续帮帮忙
2007-08-15 10:53
wucifei
Rank: 1
等 级:新手上路
帖 子:42
专家分:0
注 册:2007-8-3
收藏
得分:0 
改为:
falg=session("flag")
if flag>1 then
response.write "<script>alert('您的操作权限不够!');history.back();</script>"
response.end
end if
2007-08-15 11:14
都市打工者
Rank: 1
等 级:新手上路
帖 子:177
专家分:0
注 册:2007-8-7
收藏
得分:0 
好好看看类型把

做好自己工作的每一天,与朋友乐
2007-08-15 16:59
快速回复:Microsoft VBScript 运行时错误 错误 '800a000d'类型不匹配: '[string ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018964 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved