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

类型不匹配: '[string: ""]'

/index1.asp,行 175



我是做的会员和超管登录的提示,请大家帮我看一下第175行,是不是不对,需要怎么改,我完全新手,请尽量详细点,感谢大家

<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/web_ljdata.asp" -->
<%
Dim index1
Dim index1_cmd
Dim index1_numRows

Set index1_cmd = Server.CreateObject (")
index1_cmd.ActiveConnection = MM_web_ljdata_STRING
index1_ = "SELECT * FROM dh ORDER BY [编号] DESC"
index1_cmd.Prepared = true

Set index1 = index1_cmd.Execute
index1_numRows = 0
%>
<%
Dim ns
Dim ns_cmd
Dim ns_numRows

Set ns_cmd = Server.CreateObject (")
ns_cmd.ActiveConnection = MM_web_ljdata_STRING
ns_ = "SELECT * FROM newsadd_dee ORDER BY nstime DESC"
ns_cmd.Prepared = true

Set ns = ns_cmd.Execute
ns_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 10
Repeat1__index = 0
ns_numRows = ns_numRows + Repeat1__numRows
%>
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString <> "" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername = CStr(Request.Form("textfield1"))
If MM_valUsername <> "" Then
  Dim MM_fldUserAuthorization
  Dim MM_redirectLoginSuccess
  Dim MM_redirectLoginFailed
  Dim MM_loginSQL
  Dim MM_rsUser
  Dim MM_rsUser_cmd
  
  MM_fldUserAuthorization = ""
  MM_redirectLoginSuccess = "index1.asp"
  MM_redirectLoginFailed = "err404.html"

  MM_loginSQL = "SELECT nameid, password2"
  If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization
  MM_loginSQL = MM_loginSQL & " FROM reg_new_name WHERE nameid = ? AND password2 = ?"
  Set MM_rsUser_cmd = Server.CreateObject (")
  MM_rsUser_cmd.ActiveConnection = MM_web_ljdata_STRING
  MM_rsUser_ = MM_loginSQL
  MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param1", 200, 1, 50, MM_valUsername) ' adVarChar
  MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 50, Request.Form("textfield2")) ' adVarChar
  MM_rsUser_cmd.Prepared = true
  Set MM_rsUser = MM_rsUser_cmd.Execute

  If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
    ' username and password match - this is a valid user
    Session("MM_Username") = MM_valUsername
    If (MM_fldUserAuthorization <> "") Then
      Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
    Else
      Session("MM_UserAuthorization") = ""
    End If
    if CStr(Request.QueryString("accessdenied")) <> "" And false Then
      MM_redirectLoginSuccess = Request.QueryString("accessdenied")
    End If
    MM_rsUser.Close
    Response.Redirect(MM_redirectLoginSuccess)
  End If
  MM_rsUser.Close
  Response.Redirect(MM_redirectLoginFailed)
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>征服地带</title>
<style type="text/css">
body,td,th {
    font-size: 12px;
    border-top-color: #9CC;
    border-right-color: #9CC;
    border-bottom-color: #9CC;
    border-left-color: #9CC;
}
a:link {
    text-decoration: none;
    font-weight: bold;
    color: #000;
}
a:visited {
    text-decoration: none;
    color: #999;
}
a:hover {
    text-decoration: none;
    color: #F06;
}
a:active {
    /* [disabled]font-size: 12px; */
    font-weight: normal;
}
body {
    margin-left: 40px;
}
.a-b {
    border: 1px dotted #FFF;
}
a {
    font-size: 12px;
}
.fd {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    border: thin outset #9CC;
}
#tb3 tr td div ul li a {
    font-size: 10px;
}
#tb3 tr td div ul li a {
    font-weight: normal;
}
#tb3 tr td div ul li a {
    font-size: 12px;
}
.fd tr td p a {
    font-weight: normal;
}
tr {
    font-weight: normal;
}
.fd tr td p {
    font-size: 12px;
    font-family: "宋体";
}
tr td h1 br {
    color: #9CF;
    font-weight: bold;
}
.fd tr td h1 {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    font-weight: normal;
}
.fd {
    font-weight: normal;
}
h1 {
    font-size: 12px;
    color: #000;
}
.fgg {
    font-size: 12px;
}
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<table width="860" border="0">
  <tr align="center">
    <td width="16"><img src="img/logo1.gif" alt="" width="16" height="16" /></td>
    <td width="413" align="left"><% if Session("MM_Username")="" then
      response.write("欢迎你来到征服地带! <a href=reg_login.asp>登陆网站</a>|<a href=new_reg.asp>免费注册")
   elseif Session("MM_UserAuthorization")=1 then
      response.write("您好,我亲爱的:" & Session("MM_Username") & "超级管理后台" & "<a href=reg_out.asp> | 退出登陆</a>")
     else
     response.write("您好,我亲爱的:" & Session("MM_Username") & "<a href=reg_out.asp> | 退出登陆</a>")   
   end if
%></td>
    <td width="35">&nbsp;</td>
    <td width="28" class="a"><strong class="a-b">下载</strong></td>
    <td width="16"><img src="img/logo2.gif" width="16" height="16" alt="" /></td>
    <td width="90"><a href="http://pan.baidu.com/s/1gdGJfnd">1.0A版纯净版</a></td>
    <td width="16"><img src="img/logo3.gif" width="16" height="16" alt="" /></td>
    <td width="123" align="left"><a href="http://www.中国VOOBLY平台下载</a></td>
    <td width="85" align="right">联系我们</td>
  </tr>
</table>
<table width="867" border="0" cellspacing="0">
  <tr align="center" bordercolor="#333333">
    <td width="176" align="left"  bordercolor="#333333"><img src="img/logo.gif" alt="" width="173" height="75" border="1" /></td>
    <td width="687" align="left"  bordercolor="#333333"><img src="img/bg2.gif" alt="1" width="680" height="80" /></td>
  </tr>
</table>
<table width="860" border="0" cellspacing="0">
  <tr align="center" bgcolor="#9FF4D9">
    <td width="12">◇</td>
    <td width="104"><a href="#"><%=(index1.Fields.Item("dh1").Value)%></a></td>
    <td width="12">◇</td>
    <td width="106"><%=(index1.Fields.Item("dh2").Value)%></td>
    <td width="12">◇</td>
    <td width="94"><%=(index1.Fields.Item("dh3").Value)%></td>
    <td width="12">◇</td>
    <td width="94"><%=(index1.Fields.Item("dh4").Value)%></td>
    <td width="12">◇</td>
    <td width="94"><%=(index1.Fields.Item("dh5").Value)%></td>
    <td width="12">◇</td>
    <td width="94"><%=(index1.Fields.Item("dh6").Value)%></td>
    <td width="12">◇</td>
    <td width="102"><%=(index1.Fields.Item("dh7").Value)%></td>
  </tr>
  <tr align="center" bgcolor="#FFFFFF">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="860" border="0" cellpadding="0">
  <tr>
    <td width="200" height="864" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd" id="tb1">
      <tr>
        <td width="97%" align="left" bordercolor="#66CCFF" background="img/bg100.gif"><img src="img/论坛精华区.png" width="214" height="37" alt="" /></td>
        <td width="3%" align="right" bordercolor="#66CCFF" background="img/bg3.gif">&nbsp;</td>
      </tr>
      <tr>
        <td height="200" colspan="2" align="left" valign="top" bordercolor="#66CCFF"><%
While ((Repeat1__numRows <> 0) AND (NOT ns.EOF))
%>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="6%">›</td>
      <td width="87%"><a href="admin/news/news_viwe2.asp?newsid=<%=(ns.Fields.Item("newsid").Value)%>" target="_new" class="fgg"><%=(ns.Fields.Item("title").Value)%></a></td>
      <td width="7%">&nbsp;</td>
      </tr>
  </table>
  <%
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  ns.MoveNext()
Wend
%>
<p>&nbsp;</p></td>
      </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd" id="tb2">
        <tr>
          <td bordercolor="#66CCFF" align="left" background="img/bg3.gif"><img src="img/游戏导航.png" width="217" height="41" alt="" /></td>
        </tr>
        <tr>
          <td bordercolor="#66CCFF" height="200" align="left" valign="top"><p>&nbsp;</p></td>
        </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd" id="tb3">
        <tr>
          <td bordercolor="#66CCFF" align="left" background="img/bg3.gif">战术频道</td>
        </tr>
        <tr>
          <td bordercolor="#66CCFF" height="200" align="left" valign="top"><div>&raquo;延伸阅读</div>
            <div>
              <ul>
                <li><a href="http://game. se_prerender_url="complete">玛雅雄鹰闪电快攻(3)</a></li>
                <li><a href="http://game. se_prerender_url="complete">如何对付兵营前置打法</a></li>
                <li><a href="http://game. se_prerender_url="complete">1.0b蒙古封建flush剖析</a></li>
                <li><a href="http://game.单挑高手都青睐匈奴的原因</a></li>
                <li><a href="http://game. se_prerender_url="complete">关于驻扎放箭的研究</a></li>
                <li><a href="http://game. se_prerender_url="complete">AOC单位攻击速率</a></li>
                <li><a href="http://game.帝国时代II单位速率一览表</a></li>
                <li><a href="http://game.帝国时代2建筑物隐藏属性</a></li>
                <li><a href="http://game.征服者各兵种的强度排名</a></li>
                <li><a href="http://game. se_prerender_url="complete">帝国时代2之快速升城堡的计算</a></li>
                <li><a href="http://game. se_prerender_url="complete">征服者兵种单位生产速度一览表(下)</a></li>
                <li><a href="http://game. se_prerender_url="complete">征服者兵种单位生产速度一览表(上)</a></li>
                <li><a href="http://game.有关骑兵系部队</a></li>
                <li><a href="http://game.轮轴技术与手推车技术对采集资源的影响</a></li>
                <li><a href="http://game.宰羊的人数与取得食物的分析</a></li>
                <li><a href="http://game. se_prerender_url="complete">建筑时间与人数的分析篇</a></li>
                <li><a href="http://game. se_prerender_url="complete">封建弓兵和箭塔y和心得</a></li>
                <li><a href="http://game. se_prerender_url="complete">征服者的一些新发现(2)</a></li>
                <li><a href="http://game. se_prerender_url="loading">关于步兵和弓箭手的一些测试结果</a></li>
                <li><a href="http://game.杀猪大法参考篇</a></li>
              </ul>
          </div>            <p>&nbsp;</p></td>
        </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd" id="tb4">
        <tr>
          <td bordercolor="#66CCFF" align="center" background="img/bg3.gif">你的栏目</td>
        </tr>
        <tr>
          <td bordercolor="#66CCFF" height="200" align="left" valign="top"><p>&nbsp;</p></td>
        </tr>
    </table></td>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd">
      <tr bgcolor="#66CCFF">
        <td width="33%" align="center" background="img/空白浅绿背景.png">视频剪辑播放</td>
        <td width="58%">&nbsp;</td>
        <td width="9%" align="right"><a href="#">More.</a></td>
      </tr>
      <tr>
        <td height="309" colspan="3" align="center" valign="top"><p>
<param name="movie" value="http://player. />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示,请将其删除。 -->
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <param name="BGCOLOR" value="#999999" />
            <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
            <!--[if !IE]>-->
            <object data="http://player. type="application/x-shockwave-flash" width="437" height="306" align="middle">
              <!--<![endif]-->
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="6.0.65.0" />
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <param name="BGCOLOR" value="#999999" />
              <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
              <div>
                <h4>此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
                <p><a href="http://www. src="http://www. alt="获取 Adobe Flash Player" width="112" height="33" /></a></p>
                </div>
              <!--[if !IE]>-->
            </object>
          <!--<![endif]-->        </p></td>
        </tr>
      <tr>
        <td height="309" colspan="3" align="left" valign="top"><h1>帝国时代-骑鹤下扬州的封不快</h1>
          <p>其实封不快大闹扬州的时候,我可能还不怎么会上网<br />
            事情的经过又兴趣的朋友可以百度一下,我就懒得重复了<br />
            有些事,你不必亲历,有些人,也无需面见,只要听说一些传闻就足以让你倾倒<br />
            当初帝国届高手如云,封不快未必是顶峰人物,可就像向问天在笑傲江湖中的武功虽然牛逼,但也称不上登峰造极一样,同样不会影响天王老子那种舍我其谁的派头<br />
            你说封不快跑去扬州平台和一帮人怄气有必要吗?<br />
            可是如果有这么一个机会摆在我的面前,我想我不会拒绝的<br />
            可能是生命总有一股力量在催促着我去和别人比较吧<br />
            有句话说的好,最好的兄弟是女票出来的,生活撕下伪装之后你会觉得更加轻松美好,游戏也是一样,当我们每个人都尽心尽力的做一件事,而结果也许是别人比你更加优秀,我想正常的人会有一种惺惺相惜的感觉,从而更加尊重对方!这也许就是竞技游戏的灵魂吧<br />
            事件的结果是封不快挡不住一波又一波高手的车轮大战,终于败下阵来,自此飘然离去,不再理会<a href="http://www. target="_blank">帝国时代</a>的恩恩怨怨。我当初的感觉就像看到了光明顶上的张无忌,对错已经不重要了。坚持也许就是坚持下去的唯一理由吧<br />
            后来扬州对战平台公布的IP地址,显示的是四川绵阳!一直隐姓埋名大闹扬州的封不快在帝国届天下尽知<br />
            一举成名天下知 如今每一个对战高手的梦想都通过正规的比赛途径来实现着<br />
            闪耀着异样的光芒!</p>
          <h1><br />
</h1></td>
      </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd">
        <tr>
          <td width="33%"  background="img/空白浅绿背景.png"><strong>精彩对战鉴赏</strong></td>
          <td width="58%">&nbsp;</td>
          <td width="9%" align="right">More..</td>
        </tr>
        <tr>
          <td colspan="3" align="left" valign="top"><p><a href="http://v.pps.tv/play_3BDBN4.html">传说WCG2002年韩国电竞高手对决(神之手VS kbkm)</a><span class="a-b"><a href="http://js. />
            2008年(RSB)日升杯现场比赛实况<br />
          </a></span><a href="http://player.视频: 帝国时代2 2011贺岁杯争霸赛[CSC]Tiger VS _FJ_AR</a><br />
          </p></td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd">
        <tr>
          <td width="84%"><img src="img/最新-新闻-公告-活动.png" width="378" height="37" alt="" /></td>
          <td width="16%" align="right">More..</td>
        </tr>
        <tr>
          <td colspan="2" align="center"><p>&nbsp;</p></td>
        </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd">
        <tr>
          <td width="33%" background="img/空白浅绿背景.png">历界比赛回顾</td>
          <td width="58%">&nbsp;</td>
          <td width="9%" align="right">More..</td>
        </tr>
        <tr>
          <td height="248" colspan="3" align="center"><p>&nbsp;</p></td>
        </tr>
    </table></td>
    <td width="200" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd" id="tb5">
      <tr>
        <td bordercolor="#66CCFF" align="left" background="img/bg3.gif">用户登录</td>
        <td bordercolor="#66CCFF" align="right" background="img/bg3.gif">忘记密码?</td>
      </tr>
      <tr>
        <td height="124" colspan="2" align="right" valign="top" bordercolor="#66CCFF"><form id="form1" name="form1" method="POST" action="<%=MM_LoginAction%>">
          <p>
            <label for="textfield1">账号</label>
            <input name="textfield1" type="text" id="textfield1" size="20" />
          </p>
          <p>
            <label for="textfield2">密码</label>
            <input name="textfield2" type="text" id="textfield2" size="20" />
          </p>
          <p>
            <input type="submit" name="button" id="button" value="登 录" />
            --注册
          </p>
        </form>          <p>&nbsp;</p></td>
      </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd" id="tb6">
        <tr>
          <td bordercolor="#66CCFF" align="center" background="img/bg3.gif">VOOBLY积分</td>
          <td bordercolor="#66CCFF" align="center" background="img/bg3.gif"><img src="img/排行榜.png" width="100" height="24" alt="" /></td>
        </tr>
        <tr>
          <td height="200" colspan="2" align="left" valign="top" bordercolor="#66CCFF"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd">
            <tr>
              <td width="57%">vbID</td>
              <td width="28%">积分</td>
              <td width="15%">名次</td>
            </tr>
            <tr bgcolor="#FFFFFF">
              <td>_swJ_水淡淡<br />
                _MyST_BT4 <br />
                _VG_Deeipoid </td>
              <td>2578<br />
                2512<br />
                2487</td>
              <td>1<br />
                2<br />
                3</td>
            </tr>
          </table>            <p>&nbsp;</p></td>
        </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" class="fd" id="tb7">
        <tr>
          <td bordercolor="#66CCFF" align="center" background="img/bg3.gif">帝友歌会</td>
        </tr>
        <tr class="fd">
          <td bordercolor="#66CCFF" height="200" align="left" valign="top"><p>&nbsp;</p></td>
        </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="1" id="tb8">
        <tr>
          <td bordercolor="#66CCFF" align="center" background="img/bg3.gif">征服者补丁集</td>
        </tr>
        <tr class="fd">
          <td bordercolor="#66CCFF" height="200" align="left" valign="top"><p>&nbsp;</p></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="860" border="0" cellspacing="2">
  <tr>
    <td width="215" align="center"><a href="admin/index_admin.html">管理登录</a></td>
  </tr>
</table>
<br />
<br />
<script type="text/javascript">

</script>
</body>
</html>
<%
index1.Close()
Set index1 = Nothing
%>
<%
ns.Close()
Set ns = Nothing
%>
搜索更多相关主题的帖子: Microsoft include 会员 file 
2014-12-23 12:14
m15235394045
Rank: 1
等 级:新手上路
帖 子:2
专家分:5
注 册:2015-1-23
收藏
得分:0 
elseif Session("MM_UserAuthorization")="1" then
我认为你原来写的是字符串与数值做比较
2015-01-23 16:49
ysf0181
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:55
帖 子:914
专家分:2385
注 册:2006-10-4
收藏
得分:0 
这种错误,一般是数组的原因,你检查下数组下标。

ASP讨论QQ群:251346273
2015-02-06 14:07
快速回复:类型不匹配: '[string: ""]'
数据加载中...
 
   



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

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