<< CAPTCHASP Home
In this example the codeword is being provided by the page code, not by the control.
Since the CodeWordType property is set to "Custom", the codeword is required be
set via the CodeWord parameter of the CodeWordSelection event (as shown below) otherwise
this step would be optional.
Protected Sub CAPTCHASP1_CodeWordSelection(ByRef CodeWord As
String) Handles
CAPTCHASP1.CodeWordSelection
CodeWord =
"CAPTCHASP!"
End Sub

Please type the code you see above:
The page detects when the user entered the correct codeword by handling the UserVerified
event.
Protected Sub
CAPTCHASP1_UserVerified() Handles
CAPTCHASP1.UserVerified
'The user entered the correct codeword
Response.Redirect("Success.aspx")
End Sub
In this case it simply transfers the user to a new page, but it provides a good
opportunity to do other potentially useful things too, such as setting a flag, logging
the verification event, setting a cookie, writing a database record, setting a session
variable, etc. Using such techniques you could "remember" that this is a real
person so you don't necessarily have to make them go through the verification process
again in the future.