protected void btnLogin_Click(object sender, EventArgs e) { BusinessClass business = new BusinessClass(); if (business.AuthenticateByPasswordOnly(txtPassword.Value)) { Session["InternalRedirect"] = true; FormsAuthentication.RedirectFromLoginPage("", true); } else { InvalidCredentialsMessage.Visible = true; } }