Exemple #1
0
 private void GetUser()
 {
     Security.ClsUsers oUser = new Security.ClsUsers();
     try
     {
         oUser.GetUser(txtUser.Text, txtPwd.Text);
         //I NEED TO EVALUATE FOR NOTHING COMING BACK
         Session.Add("USERCODE", oUser.UserID);
         Session.Add("USERNAME", oUser.UserName);
         Session.Add("HouseID", oUser.HouseID);
     }
     catch (Exception ex)
     {
         lblError.Text = "GetUser:"******"USERCODE"] > 0)
     {
         ValidateAccess();
         //Call CheckForStats()
     }
     else
     {
         lblError.Text = "Invalid Username/Password";
     }
 }