Пример #1
0
        protected void loginButton_Click(object sender, EventArgs e)
        {
            string msg          = "";
            Center aCenterLogin = new Center();

            aCenterLogin.CenterUserId   = codeTextBox.Text;
            aCenterLogin.CenterPassword = passwrdTextBox.Text;
            CenterManager aCenterManager = new CenterManager();

            aCenterLogin = aCenterManager.FindCodePswrd(aCenterLogin);
            if (aCenterLogin == null)
            {
                msg = "Code & Password does not exist!!";
            }
            else
            {
                Session["CenterId"] = aCenterLogin.CenterId;
                Response.Redirect("CenterIndexPageUI.aspx");
            }
        }