Captcha Control
- 2 minutes to read
ASPxCaptcha is a CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) control used to verify that data is submitted by a human, and not a robot or script.
ASPxCaptcha offers the following features:
Customizable Element Visibility and Appearance
The following table lists the properties that define CAPTCHA element visibility and appearance:
Members Description ASPxCaptcha.ChallengeImage Accesses the settings of the image displayed within the challenge image element. ASPxCaptcha.LoadingPanel Accesses the settings of the CAPTCHA editor’s loading panel. ASPxCaptcha.RefreshButton Accesses the settings of the CAPTCHA editor’s refresh button. ASPxCaptcha.TextBox Accesses the settings of the CAPTCHA editor’s text box. Customizable Error Message
When a user inputs an incorrect code, the control displays an error message. To modify the displayed message, use the CaptchaValidationSettings.ErrorText property.
Customizable Character Set
You can use the ASPxCaptcha.CharacterSet property to define the set of characters used by the editor to generate the code displayed in a challenge image.
Customizable Code Length
The ASPxCaptcha.CodeLength property allows you to define the number of characters displayed within the editor’s challenge image.
Various Font Families
The CaptchaImageProperties.FontFamily property allows you to define the font used in the challenge image (for instance, Verdana, Times New Roman, Georgia, or Courier New).
Various Font Styles
The CaptchaImageProperties.FontStyle property allows you to define the font style in the challenge image: Regular, Italic, or Bold.
Full-Featured Client-Side API
ASPxCaptcha includes a comprehensive client-side API. To access this API, use the control’s client-side equivalent (the ASPxClientCaptcha object).
Use the following methods to modify the editor behavior:
Method Description ASPxClientCaptcha.Focus Sets input focus to the control’s text box. ASPxClientCaptcha.Refresh Refreshes the code displayed within the editor’s challenge image. Web Gardens Support
The ASPxCaptcha control supports the IIS clustered web environment (also known as a Web Farm or Web Garden). To learn more, see the following topic: Binary Storage Configuration.