Пример #1
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            string userid = txtUserID.Text;
            string pass = txtPassword.Text;
            BusinessRule.busEmployees lst = new BusinessRule.busEmployees();
            FrameWork.Employees frmEmp = new FrameWork.Employees();
            frmEmp = lst.Retrieve1(userid, pass);
            if (frmEmp != null)
            {
                Session["id"] = frmEmp.ID;
                Session["user"] = frmEmp.Login;
                //   Session["position"] = frmLogin.position;
                //Server.Transfer("adduser.aspx");
                Response.Redirect("adduser.aspx");
            }

        }
Пример #2
0
        protected void btnLogin_Click(object sender, EventArgs e)
        {
            string userid = txtUserID.Text;
            string pass   = txtPassword.Text;

            BusinessRule.busEmployees lst    = new BusinessRule.busEmployees();
            FrameWork.Employees       frmEmp = new FrameWork.Employees();
            frmEmp = lst.Retrieve1(userid, pass);
            if (frmEmp != null)
            {
                Session["id"]   = frmEmp.Login;
                Session["user"] = frmEmp.Login;
                //   Session["position"] = frmLogin.position;
                //Server.Transfer("adduser.aspx");
                Response.Redirect("adduser.aspx");
            }
        }