Microsoft VBScript 编译器错误 '800a0409' 未结束的字符串常量

来源:百度知道 编辑:UC知道 时间:2024/05/07 19:40:05
提示错误:Microsoft VBScript 编译器错误 '800a0409'

未结束的字符串常量

\admin\login.asp, line 26

代码:
<%@Language="VBScript" codepage="65001"%>
<% Option Explicit %>
<!-- #include file="../include/conn.asp" -->
<!-- #include file="../lib/md5.asp" -->
<%
Dim LoginErrMsg

if( Request("name")<>"" and Request("passwd")<>"" ) then
if( Request("vcode")=Session("ValidateCode") ) then
Dim cmd,rs
Set cmd=Server.CreateObject("ADODB.Command")
Set rs=Server.CreateObject("ADODB.Recordset")
cmd.CommandText="select * from tbl_admin where name=? and passwd=?"
cmd.ActiveConnection=conn
cmd.Parameters.Append cmd.CreateParameter("name", adVarChar, adParamInput, 50, Request("name"))
cmd.

哪一行?
我怎么数26行 是
LoginErrMsg="警告:验证码错误!"
没错吧这行

把这行注释掉,看看,首先确定哪行的问题

可以用注释和添加换行的方式来确定