public void btnResetpassword_Click(object s, EventArgs e) { BLL_Infra_UserCredentials objBLL = new BLL_Infra_UserCredentials(); string tempPwd = Membership.GeneratePassword(6, 1); if (objBLL.UPD_Reset_Password(txtResetEmailid.Text.Trim(), DMS.DES_Encrypt_Decrypt.Encrypt(tempPwd), tempPwd) == 1) { lblresetMessage.Text = "Your password has been reset successfully. <br><br> An email with a temporary password will be sent shortly. "; btnResetpassword.Enabled = false; } else { lblresetMessage.Text = "No account found with that email address. <br><br> Please enter your email address correctly or contact the jibe support at : [email protected]"; } }