为什么Redirect会出错?(200分)

M

myasp

Unregistered / Unconfirmed
GUEST, unregistred user!
为什么Redirect会出错?
 
response.redirect
必须在输出任何信息前使用。
 
接受答案了.
 
帮助我看一下我的Redirct 有什么错误。
<html>
<title>幻灯片网络评分系统</title>
<body bgcolor="#fef4d9">
<%
Dim sSQL
sSQL="select empno from staff_info "
sSQL=sSQL&amp;" where emp_name='"&amp;Request.Form("name")&amp;"'"
sSQL=sSQL&amp;" and emp_idno='"&amp;Request.Form("password")&amp;"'"

Set MyConn=server.CreateObject("ADODB.Connection")
MyConn.Open "LBS","rep02","rep02"
Set RS=MyConn.Execute(sSQL)

if RS.eof then
response.write "&amp;nbsp对不起,用户名或密码有误。<p>&amp;nbsp;请与系统管理员联系!"
end if

if not RS.eof then
Response.redirect("face.asp")
%>
</body>
</html>
 
顶部