Mitchel, I am using the DNN delivered captcha control within an asp registration wizard. I have followed the instructions in your Professional Dotnetnuke Module programming and your blog but I can not get the error message to display. I am sure its something simple but I can't seem to figure it out. Any ideas? Thank you ' Below are some of the event handlers for the Wizard Control Protected Sub OnFinishButtonClick(ByVal sender As Object, ByVal e As WizardNavigationEventArgs)
Page.Validate()
If Page.IsValid() AndAlso ctlCaptcha.IsValid() Then ' Some work is done in here End If End Sub Private Sub RegistrationWizard_ActiveStepChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RegistrationWizard.ActiveStepChanged If RegistrationWizard.ActiveStepIndex = Registration.Complete Then
If Not ctlCaptcha.IsValid() Then
' The captcha validation failed. Display the user information step again
ctlCaptcha.ErrorMessage = "Try again. Enter the code shown in the box"
RegistrationWizard.ActiveStepIndex = Registration.UserInfo
End If
End If End Sub |