The information about Captcha can be found here. Basically, it is a control used to determine whether the user is human.
The control basically has the following properties. One of them is a numeric property to set the validation result.
|Captcha User Control Properties
||Name of the control.
||Height of the control, default 39 according to image size.
||Numeric property used to set the validation result.
||Text to be shown as Reload Image link.
||Width of the control, default 140 according to image size.
ReloadImage : Lets you reload the image displayed by the control without refreshing the page (eg: Captcha1.ReloadImage())
First of all, you need to drag the control from the toolbox where you have the controls and the user controls to a web panel. When you do that, the control will be displayed as follows:
Then, select the control to see its properties.
The following code could be used in your event to know if the validation was successful or not.:
If Captcha1.ValidationResult = 1
msg("Validation failed, retype the word as seen on the image.")
Control at runtime:
The control will be displayed as follows showing a random image. As you can see, an edit box is created by the control just below the image. There is where the user needs to type the image text and press tab in order to get the validation executed.
Note: This first version of the control is for illustrative purposes. In further versions the security will be improved, the idea is to have the user control to return the image id and the encrypted text typed by the user so it can then be validated against the values stored in a database table; suggestions are welcomed.
Please visit: Default Installation Instructions for User Controls.
2008/04/26: Version 1.1 uploaded. VersionNumber and PathToImages properties added to the control.
2010/02/15: Version 1.3 uploaded. VersionNumber property removed, ReloadImage method added.
2011/03/07: Version 1.4 uploaded. fix:Some texts had wrong encoded values. feature:ReloadImage link is now displayed allowing user to change current image.
Please send feedback to: firstname.lastname@example.org