protected void ButtonResetPassword_Click(object sender, EventArgs e) { CustomerUtil c = new CustomerUtil().GetUserInformation(TextBoxUserName.Text); if (c.Email.Equals(TextBoxEmail.Text)) { int rand = new Random().Next(100000, 999999); string newPassoword = "bsu" + rand; // bsu663873 c.ResetPassowrd(newPassoword); //call ResetPassword method LabelMessage.Visible = true; LabelMessage.Text = "Your password has been reset, please check your email to get it!"; LabelMessage.ForeColor = Color.Red; sendNotification(c.Email, newPassoword); } //close if } //close ButtonResetPassword_Click method