日期:2014-05-18  浏览次数:20407 次

asp.net?????????????????????????????
技术信息(用于支持人员)

错误类型:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象: ''
/login.asp, 第 13 行


浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; TencentTraveler 4.0) 

网页:
GET /login.asp 

<! - - #include file="conn.fun" - ->
<html>
<head>
<link rel="stylesheet" href="common.css" type="text/css">
<title>同学通讯录</title>
</head>
<body>
<%
'取得用户名和密码,并删除用户名和密码中的首尾空格
username=Trim(Request.Form("Username"))
userpass=Trim(Request.Form("PassWord"))
Commandtext="Select * From t_user where d_user='" & username & "'"
set rs=conn.Execute(commandtext,recordsAffected,adcmdtext)
'检查用户名和密码是否正确
if rs.eof then
Response.write"<p>对不起,指定的用户不存在!</p>"
Response.write"<a href='default.asp'>返回主页</a>"
Response.end
end if
if userpass=rs("d_pass") then
Session("level")=rs("d_level")
Response.Redirect"main.asp"
else
response.write"<p>对不起,密码错误!<p>"
response.write"<a href='default.asp'>返回首页</a>"
end if
Set conn=nothing
%>
</body>
</html>
请问是什么错误?
该怎么改?
谢谢!



------解决方案--------------------
好像是数据库连接问题吧!
------解决方案--------------------
应该是数据库连接有问题
仔细检查语句
慢慢调试
------解决方案--------------------
学习。