Ejemplo n.º 1
0
        protected void btnLogIn_Click(object sender, EventArgs e)
        {
            EmployeeCollection EmpColl = XMLReader.EmpXMLReader();

            var employee = EmpColl.EmployeeList.Where(item => item.EmpID.ToLower() == txtUserName.Text.ToLower() && item.Password.ToLower() == txtPassword.Text.ToLower()).SingleOrDefault();

            if (employee != null)
            {
                Session["EmpDetails"] = employee;
                Response.Redirect("~/Dashboard.aspx");
            }
            else
            {
            }
        }