Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Trying to cancel e-mail for PasswordRecovery control (http://www.velocityreviews.com/forums/t781108-trying-to-cancel-e-mail-for-passwordrecovery-control.html)

Greg 10-08-2009 03:52 PM

Trying to cancel e-mail for PasswordRecovery control
 
I have a PasswordRecovery control for (obviously) recovering passwords. In
the SendingMail event, I have code that checks something in the database, and
if the check fails, shows an error mesage and tries to cancel the e-mail.
This is all there is to my code:

If [my check fails] Then
lblError.Visible = True
e.Cancel = True
Exit Sub
End If

For some reason, I see my error message, but the PasswordRecovery control
now shows the message "Your password has been sent to you." instead of the
box for the user name. Why is this? Is there a way to get the control to
show the User Name box again?

Thanks,
Greg


All times are GMT. The time now is 12:03 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.