protected void btnSubmit_Click(object sender, EventArgs e) { try { if (txtEmail.Value != "") { if (txtNewPassword.Value != "" && txtConfirmPassword.Value != "") { if (txtNewPassword.Value == txtConfirmPassword.Value) { int success = secBLLUser.Save_UserPassword(txtEmail.Value, usercode, txtNewPassword.Value, strToken); if (success > 0) { strResult = "SUC"; ScriptManager.RegisterStartupScript(this, this.GetType(), "Alert", "GetAlert('" + strResult + "');", true); } else { strResult = "ERR"; ScriptManager.RegisterStartupScript(this, this.GetType(), "Alert", "GetAlert('" + strResult + "');", true); } } } } else { strResult = "Email"; ScriptManager.RegisterStartupScript(this, this.GetType(), "Alert", "GetAlert('" + strResult + "');", true); } } catch (Exception ex) { LError.LogError("GTKSSO.UI.ResetPassword", "btnSubmit_Click", ex.Message.ToString().Replace("\r\n", ""), usercode, true); } }