Ejemplo n.º 1
0
    protected void loginManager(object sender, EventArgs e)
    {
        _userAccount = Request.Form["input_userAccount"];
        _passWord    = Request.Form["input_password"];

        login_result = DataBaseTools.LoginForManager(_userAccount, _passWord);


        if (login_result == 1)
        {
            Response.Redirect("managerUser.aspx");
        }
        else
        {
            Response.Write("<script>alert('账户密码错误')</script>");
        }
    }