主题:  错误原因?

搏人

职务:普通成员
等级:1
金币:1.0
发贴:150
注册:2000/11/16 9:23:09
#12001/3/29 10:51:38
告诉我原因:
答复对象 错误 'ASP 0156 : 80004005'
头错
/ccec/login/login.asp,行167
HTTP 头已经写入到 客户浏览器。任何 HTTP 头的修改必须在写入页内容之前。

167 response.redircet "../home/index.asp"



semon

职务:普通成员
等级:3
金币:1.0
发贴:896
注册:2000/9/15 13:43:14
#22001/3/29 11:13:15
把代码贴出来.



搏人

职务:普通成员
等级:1
金币:1.0
发贴:150
注册:2000/11/16 9:23:09
#32001/3/29 11:37:37
<%
If Request.QueryString("mode") <> "doit" then
    Call ShowForm
Else
    Dim Err_msg
    Err_msg = ""
    if Request.Form("MemberId") = "" then Err_Msg = Err_Msg & "
  • 你必须输入你的MemberId
  • "
        if Request.Form("Password") = "" then Err_Msg = Err_Msg & "
  • 你必须输入你的Password
  • "
        'if request.form("MemberId")="" or request.form("password")="" then
            'response.write("请填写 memberId! or Password!")

        
            set myconn= Server.CreateObject("ADODB.Connection")
            myconn.open "PROVIDER=SQLOLEDB;DATA=192.168.0.193;User ID=sa;Password=boren@;DATABASE=mybase"
            strSql="select * from member where M_Id='"&request.form("MemberId")&"' and M_Password='"&request.form("password")&"'"
            set rs=myconn.execute(strSql)
                IF rs.EOF then
                     Err_Msg = Err_Msg & "
  • invalid UserName or Password
  • "
                else
            
                    'Response.Redirect Session("Goback")
                    'Response.Redirect "http://192.168.0.193/ccec/home/index.htm"
                    'Response.END
                END IF
                    rs.close
                    myconn.close
                if Err_Msg <> "" then    
        
    %>

    你填写的信息有错误:



      <%= Err_Msg %>



    <!--#include file="form" -->