• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class CaptchaControl

The CaptchaControl control provides a Captcha Challenge control.

Inheritance
System.Object
CaptchaControl
Implements
INamingContainer
IPostBackDataHandler
Namespace: DotNetNuke.UI.WebControls
Assembly: DotNetNuke.dll
Syntax
public class CaptchaControl : WebControl

Constructors

| Improve this Doc View Source

CaptchaControl()

Initializes a new instance of the CaptchaControl class.

Declaration
public CaptchaControl()

Properties

| Improve this Doc View Source

BackGroundColor

Gets or sets the BackGroundColor.

Declaration
public Color BackGroundColor { get; set; }
Property Value
Type Description
Color
| Improve this Doc View Source

BackGroundImage

Gets or sets the BackGround Image.

Declaration
public string BackGroundImage { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

CaptchaChars

Gets or sets the list of characters.

Declaration
public string CaptchaChars { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

CaptchaHeight

Gets or sets the height of the Captcha image.

Declaration
public Unit CaptchaHeight { get; set; }
Property Value
Type Description
Unit
| Improve this Doc View Source

CaptchaLength

Gets or sets the length of the Captcha string.

Declaration
public int CaptchaLength { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

CaptchaWidth

Gets or sets the width of the Captcha image.

Declaration
public Unit CaptchaWidth { get; set; }
Property Value
Type Description
Unit
| Improve this Doc View Source

EnableViewState

Gets or sets a value indicating whether the Viewstate is enabled.

Declaration
public override bool EnableViewState { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ErrorMessage

Gets or sets the ErrorMessage to display if the control is invalid.

Declaration
public string ErrorMessage { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ErrorStyle

Gets and sets the BackGroundColor.

Declaration
public Style ErrorStyle { get; }
Property Value
Type Description
Style
| Improve this Doc View Source

Expiration

Gets or sets the Expiration time in seconds.

Declaration
public int Expiration { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IsValid

Gets a value indicating whether the control is valid.

Declaration
public bool IsValid { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

RenderUrl

Gets or sets the Url to use to render the control.

Declaration
public string RenderUrl { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Text

Gets or sets the Help Text to use.

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

TextBoxStyle

Gets the Style to use for the Text Box.

Declaration
public Style TextBoxStyle { get; }
Property Value
Type Description
Style

Methods

| Improve this Doc View Source

CreateChildControls()

The CaptchaControl control provides a Captcha Challenge control.

Declaration
protected override void CreateChildControls()
| Improve this Doc View Source

GetNextCaptcha()

Gets the next Captcha.

Declaration
protected virtual string GetNextCaptcha()
Returns
Type Description
System.String

The challenge string.

| Improve this Doc View Source

LoadPostData(String, NameValueCollection)

LoadPostData loads the Post Back Data and determines whether the value has change.

Declaration
public virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters
Type Name Description
System.String postDataKey

A key to the PostBack Data to load.

NameValueCollection postCollection

A name value collection of postback data.

Returns
Type Description
System.Boolean

Always false.

| Improve this Doc View Source

LoadViewState(Object)

The CaptchaControl control provides a Captcha Challenge control.

Declaration
protected override void LoadViewState(object savedState)
Parameters
Type Name Description
System.Object savedState
| Improve this Doc View Source

OnPreRender(EventArgs)

The CaptchaControl control provides a Captcha Challenge control.

Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type Name Description
EventArgs e
| Improve this Doc View Source

OnUserValidated(ServerValidateEventArgs)

The CaptchaControl control provides a Captcha Challenge control.

Declaration
protected virtual void OnUserValidated(ServerValidateEventArgs e)
Parameters
Type Name Description
ServerValidateEventArgs e
| Improve this Doc View Source

RaisePostDataChangedEvent()

RaisePostDataChangedEvent runs when the PostBackData has changed.

Declaration
public void RaisePostDataChangedEvent()
| Improve this Doc View Source

Render(HtmlTextWriter)

The CaptchaControl control provides a Captcha Challenge control.

Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type Name Description
HtmlTextWriter writer
| Improve this Doc View Source

SaveViewState()

The CaptchaControl control provides a Captcha Challenge control.

Declaration
protected override object SaveViewState()
Returns
Type Description
System.Object
| Improve this Doc View Source

Validate(String)

Validates the posted back data.

Declaration
public bool Validate(string userData)
Parameters
Type Name Description
System.String userData

The user entered data.

Returns
Type Description
System.Boolean

true if the data is valid, otherwise false.

Events

| Improve this Doc View Source

UserValidated

The CaptchaControl control provides a Captcha Challenge control.

Declaration
public event ServerValidateEventHandler UserValidated
Event Type
Type Description
ServerValidateEventHandler

Implements

INamingContainer
IPostBackDataHandler

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS