注册 登录
编程论坛 ASP技术论坛

求助:错误 '800a0401' 语句未结束 看错误出在哪里

yanziyz 发布于 2008-09-11 16:17, 958 次点击
运行时提示如下错误:
Microsoft VBScript 编译器错误 错误 '800a0401'

语句未结束

/QuestionPreview.asp,行 109

strType="<input name =" " type =" checkbox " value =" ">"
------------------------^

我程序的出错代码如下:
<% for cycle1="1" to rscount
           QuestionType=rs("Type")
           strAnswer=rs("Answer")
          select case QuestionType
            case "1"
            strType="dfhgf"
            case "2"
            [bo]strType="<input name =" " type =" checkbox " value =" ">"[/bo]      '109行
            case "3"
            strType=" <input name="" type="radio" value=""> "
            case "4"
            strType=" <input name="" type="checkbox" value=""> "
            case "5"
            strType=" <textarea name="textarea"></textarea> "
            end select
            
    
           %>
        
求高手指点,问题出在什么地方。急。。。多谢
2 回复
#2
永夜的极光2008-09-11 17:28
strType="<input name =' ' type =' checkbox ' value =' '>"  

strType="<input name ="" "" type ="" checkbox "" value ="" "">"         

在字符串中,如要用双引号,要么换成单引号,要么就用两个双引号表示一个双引号
#3
yanziyz2008-09-19 09:52
谢谢 “永夜的极光”,用你的方法问题解决了!感谢。。。。
1