private void btnFPassword_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (service.GetForgottenPassword(txtUsername.Text)) { ErrorLBL.Text = "Password has been sent to your FDM email"; ErrorLBL.ForeColor = Color.Green; ErrorLBL.Show(); } else { ErrorLBL.Text = "Failed to send an email please check the username"; ErrorLBL.Show(); } }
protected void btnForgotPwd_Click(object sender, EventArgs e) { if (txtUsername.Text != "") { if (service.GetForgottenPassword(txtUsername.Text)) { FailureText.Text = "An email with your password is sent to " + txtUsername.Text + "@fdmgroup.com"; } else { FailureText.Text = "Failed to send the password to your email. Please check the username."; } } else { FailureText.Text = "Please enter a valid username"; } }