protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
        {
            var login = sender as System.Web.UI.WebControls.Login;
            var auth = new Metier.Managers.AuthenticationManager();
            var isAuthenticated = auth.IsAuthenticated(login.UserName, login.Password);

            if (isAuthenticated)
            {
                e.Authenticated = true;
                Session["username"] = login.UserName;
                Session["password"] = login.Password;
            }
            else
            {
                e.Authenticated = false;
            }
        }
        protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
        {
            var login           = sender as System.Web.UI.WebControls.Login;
            var auth            = new Metier.Managers.AuthenticationManager();
            var isAuthenticated = auth.IsAuthenticated(login.UserName, login.Password);

            if (isAuthenticated)
            {
                e.Authenticated     = true;
                Session["username"] = login.UserName;
                Session["password"] = login.Password;
            }
            else
            {
                e.Authenticated = false;
            }
        }