这句ASP语句错在哪里?

来源:百度知道 编辑:UC知道 时间:2024/06/23 12:48:39
提示错误的是“if (request("name")<> null) and (request("pwd")<> null) ” 这句,但是我不知道错在什么地方!

-----------------------------------------------------------------
错误类型:
Microsoft JScript 编译错误 (0x800A03EA)
语法错误
/md5/main.asp, line 10, column 20
if (request("name")<> null) and (request("pwd")<> null) then
-----------------------------------------------------------------
<%
if (request("name")<> null) and (request("pwd")<> null) then
nam=request.form("name")
pass=request.form("pwd")
set cnndb=Server.CreateObject("ADODB.Connection")
strcon="provider=microsoft.jet.oledb.4.0;data source="&server.mappath("cc.mdb")
cnndb.open strcon
Set rs=Server.CreateObject("ADODB.Recordset")
sqlstr="Select * from

Microsoft JScript 编译错误 (0x800A03EA)
怎么 会是这个错误.
看下你的默认脚本 是不是Jscript.如果是就改为VBSCRIPT

if (request("name")<> "") and (request("pwd")<> "") then

if request("name")<>"" and request("pwd")<>"" then

if (request("name")<> null and request("pwd")<> null) then