ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - Captcha - Server side

Obout.Ajax.UI.Captcha.CaptchaImage class

 Inheritance Hierarchy

<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.Captcha" TagPrefix="obout" %>

Properties

Name Description
propertyAudioEnabled Bool. Gets or sets a value indicating whether an audio support is enabled.

Default false.

See online example.
propertyAudioFolder String. Gets or sets the relative URL of the folder with WAV files for audio generating.

Default "~/App_Obout/Captcha/Sounds".
propertyAudioLinkID String. Gets or sets the ID of 'get audio code' link element.

Default String.Empty .

See online example.
propertyBackBrush BrushType. Gets or sets the brush type used for the background of the image.

Default Obout.Ajax.UI.Captcha.BrushType.Confetti .
propertyBackColor Color. Gets or sets the background color.
(Inherited from WebControl.)

Default System.Drawing.Color.White .
propertyBackgroundNoise NoiseLevel. Gets or sets the background noise level in the image.

Default Obout.Ajax.UI.Captcha.NoiseLevel.Low .
propertyBorderColor Color. Gets or sets the border color of the control.
(Inherited from WebControl.)

Default System.Drawing.Color.Empty .
propertyBorderStyle BorderStyle. Gets or sets the border style of the control.
(Inherited from WebControl.)

Default BorderStyle.NotSet .
propertyBorderWidth Unit. Gets or sets the border width of the control.
(Inherited from WebControl.)

Default Unit.Empty .
propertyBrushFillerColor Color. Gets or sets the filler color when non Solid Brush is used.

Default System.Drawing.Color.LightGray .
propertyCharSet String. Gets or sets available chars (delimited with a semicolon) for the generated text in the image

Default "1;2;3;4;5;6;7;8;9;0;A;B;C;D;E;F;G;H;I;J;K;L;M;N;P;Q;R;S;T;U;V;W;X;Y;Z".
propertyFontFamily String. Gets or sets font family for the text in the CAPTCHA image.

Default "Verdana".
propertyFontWarpLevel NoiseLevel. Gets or sets the font warp level in the image.

Default Obout.Ajax.UI.Captcha.NoiseLevel.Medium .
propertyForeColor Color. Gets or sets the foreground color.
(Inherited from WebControl.)

Default System.Drawing.Color.DarkGray .
propertyGetImageMode GetImageModes. Gets or sets a method used to retrieve the source image for the control.

Default Obout.Ajax.UI.Captcha.GetImageModes.Page .
propertyHeight Unit. Gets or sets the height of the control.
(Inherited from WebControl.)

Default Unit.Pixel(40).
propertyHttpHandlerUrl String. Gets or sets the Url of .ASHX file used to get image when the GetImageMode property is set to HttpHandler.

Default "OboutCaptchaHandler.ashx".
propertyIgnoreCase Bool. Gets or sets a value indicating whether to ignore the case of the text in the control to be validated.

Default true.
propertyLineNoise NoiseLevel. Gets or sets the lines noise level in the image.

Default Obout.Ajax.UI.Captcha.NoiseLevel.Low .
propertyOnClientImageChanged String. Gets or sets the name of client-side function(handler) executed after the captcha image was changed.
This handler is added to the client-side event imageChanged, see Client-Side.
propertyProgressImage String. Gets or sets the relative URL of the 'progress' image used while a new control's image is loading (when the ShowProgress property is set to true).

If empty then the embedded image is used ().

Default String.Empty .
propertyProgressLayerCssClass String. Gets or sets the Cascading Style Sheet (CSS) class of the progress layer when a new control's image is loading (when the ShowProgress property is set to true).

Default "oaui_captchaprogresslayer" - embedded CSS class:

div.oaui_captchaprogresslayer
{
  background-color:white;
  cursor:text;
  -moz-opacity:0.3;
  filter:alpha(opacity:30);
  opacity: 0.3;
}
propertyProgressLayerZIndex Int. Gets or sets the Z-index of the progress layer and image when a new control's image is loading (when the ShowProgress property is set to true).

Default 10000 .
propertyRelativeImageUrl Bool. Gets or sets a value indicating whether to use realtive URL for the generated image.

Default true.
propertyShowProgress Bool. Gets or sets a value indicating whether to show the progress layer and image while a new control's image is loading.
The new control's image is loading on the getNewImage() client-side method call.

Default true.
propertyTextBrush BrushType. Gets or sets the brush type used for the text in the image.

Default Obout.Ajax.UI.Captcha.BrushType.Confetti .
propertyTextLength Int. Gets or sets the number of characters in the text of the CAPTCHA image.

Default 6.
propertyWidth Unit. Gets or sets the width of the control.
(Inherited from WebControl.)

Default Unit.Pixel(200).

Public methods

Name Description
propertyTestText Bool. Tests the parameter to match the rendered text in the image.
Parameters:
  • String text - text to be tested.
Returns a value indicating whether the parameter matches the rendered text in the image.

"As always, I really appreciate your fast response to questions - this is just plain Awesome!"

Olivier Kovacs
TELUS

Random testimonial   All testimonials