Trying to cancel e-mail for PasswordRecovery control

G

Greg

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top