protected void btnSend_Click(object sender, EventArgs e) { string password = Usr.generatePassword(); Usr.passwordReset(txtEmail.Text, password); if (!Mailer.sendPasswordRecoveryLetter(txtEmail.Text, password)) { lblError.Text = "Sending email with a new password is failed"; lblError.Visible = true; } ; }