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"); } }
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"); } }