代码如下:
-----------------if grade=7 then
hg_all= " zz_h="" or yw_h="" or sx_h="" or yy_h=""  or sw_h="" or ls_h="" or dl_h="" or ty_h="" "
end if
if "&hg_all&"  then 
response.write"<script language='javascript'>alert('你两次输入的密码不一致,请重新输入!');window.history.back();</script>"
end if
response.end -------------------------
总是提示下面的错误语句(第39行也就是if "&hg_all&" then 这一句):错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: '[string: "&hg_all&"]'
/jyj/km_hkfz_modify_save.asp, 第 39 行

解决方案 »

  1.   

    楼主要实现什么样的功能
    if "&hg_all&"  then '这是有错误啊if vartype("&hg_all&")=8 then
    ....
    end if
    response.end()
      

  2.   

    #1楼(aspwebchh)的回答就是我要的效果,非常的好,谢了,顺便问下,vartype这个函数的主要作用是?
      

  3.   

    #1楼(aspwebchh)的不行哦,刚才我测试错了,当hg_all的值不为 " zz_h="" or yw_h="" or sx_h="" or yy_h=""  or sw_h="" or ls_h="" or dl_h="" or ty_h="" "时就不会弹出警告框,而现在不管怎样都弹出?不知哪儿出问题了
      

  4.   

    Microsoft VBScript 运行时错误 (0x800A000D)这个是 Javascript 的坛子,贴错地了