protected void btnReset(object sender, EventArgs e) { string UserId = GlobalMethods.KillChars(txt_email.Text); if (UserId.Length > 0) { if (LoginBAL.ResetPassword(UserId)) { txt_email.Text = ""; //lblerror.CssClass = "alert alert-success"; //lblerror.Text = "Your password has been reset!"; //lblerror.Text = "<div class='alert alert-success fade in' style='font-size:14px;'><button data-dismiss='alert' class='close' type='button'>×</button>Your password has been reset!</div>"; ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "script", "CallNotify('YOUR PASSWORD HAS BEEN RESET!', '', 'success', 'repassword.aspx');", true); } else { txt_email.Text = ""; //lblerror.CssClass = "alert alert-danger"; //lblerror.Text = "Not a registered email address!"; //lblerror.Text = "Not a registered email address!"; ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "script", "CallNotify('NOT A REGISTERED EMAIL!', '', 'danger', 'repassword.aspx');", true); } } }