Ejemplo n.º 1
0
        protected void loginButton_Click(object sender, EventArgs e)
        {
            string msg = "";

            DAO.Center aCenter = new DAO.Center();
            aCenter.Code     = codeTextBox.Text;
            aCenter.Password = passwordTextBox.Text;


            CenterManager aCenterManager = new CenterManager();

            aCenter = aCenterManager.CheckCodePassword(aCenter);
            if (aCenter == null)
            {
                msg = "Error code & password...!!!!";
            }
            else
            {
                Session["CenterId"] = aCenter.Id;
                Session["user"]     = "******";
                Response.Redirect("CenterMainUI.aspx");
            }
        }