D
David Lozzi
Howdy,
I have a wizard to retrieve lost passwords on my site. The first page asks
for their username then they click Next. On the next click I have the
validation against the database to see whether or not its a valid username.
If its not, I'm displaying a little message that its incorrect, but the
wizard continues to the next step anyway. It will display the error message
(page control outside of wizard) but also display step 2. I've tried adding
both of these lines to my click function but neither works, how do I get
around this?
Protected Sub wzRecover_NextButtonClick(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.WizardNavigationEventArgs) Handles
wzRecover.NextButtonClick
Select Case wzRecover.ActiveStepIndex
Case 0
If Not DoesEmailExist(UCase(txtEmail.Text)) Then
lblError.Text = "Email address does not exist. Please enter a valid email
address."
wzRecover.ActiveStepIndex = 0
OR
wzRecover.MoveTo(WizardStep1)
Exit Sub
End If
Case 1
Case 2
End Select
End Sub
Thanks!!
David Lozzi
I have a wizard to retrieve lost passwords on my site. The first page asks
for their username then they click Next. On the next click I have the
validation against the database to see whether or not its a valid username.
If its not, I'm displaying a little message that its incorrect, but the
wizard continues to the next step anyway. It will display the error message
(page control outside of wizard) but also display step 2. I've tried adding
both of these lines to my click function but neither works, how do I get
around this?
Protected Sub wzRecover_NextButtonClick(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.WizardNavigationEventArgs) Handles
wzRecover.NextButtonClick
Select Case wzRecover.ActiveStepIndex
Case 0
If Not DoesEmailExist(UCase(txtEmail.Text)) Then
lblError.Text = "Email address does not exist. Please enter a valid email
address."
wzRecover.ActiveStepIndex = 0
OR
wzRecover.MoveTo(WizardStep1)
Exit Sub
End If
Case 1
Case 2
End Select
End Sub
Thanks!!
David Lozzi