C# Class Subtext.Web.Controls.Captcha.CaptchaControl

Inheritance: Subtext.Web.Controls.Captcha.CaptchaBase, INamingContainer, IPostBackDataHandler
Mostrar archivo Open project: ayende/Subtext Class Usage Examples

Private Properties

Property Type Description
GenerateNewCaptcha void
RenderHiddenInputForEncryptedAnswer void

Public Methods

Method Description
CaptchaControl ( ) : System

Initializes a new instance of the CaptchaControl class.

LoadPostData ( string PostDataKey, NameValueCollection Values ) : bool

Loads the post data.

RaisePostDataChangedEvent ( ) : void

When implemented by a class, signals the server control to notify the ASP.NET application that the state of the control has changed.

Protected Methods

Method Description
EvaluateIsValid ( ) : bool

When overridden in a derived class, this method contains the code to determine whether the value in the input control is valid.

OnPreRender ( EventArgs e ) : void

Generates the captcha if it hasn't been generated already.

Render ( System.Web.UI.HtmlTextWriter writer ) : void

Private Methods

Method Description
GenerateNewCaptcha ( ) : void
RenderHiddenInputForEncryptedAnswer ( System.Web.UI.HtmlTextWriter writer ) : void

Method Details

CaptchaControl() public method

Initializes a new instance of the CaptchaControl class.
public CaptchaControl ( ) : System
return System

EvaluateIsValid() protected method

When overridden in a derived class, this method contains the code to determine whether the value in the input control is valid.
protected EvaluateIsValid ( ) : bool
return bool

LoadPostData() public method

Loads the post data.
public LoadPostData ( string PostDataKey, NameValueCollection Values ) : bool
PostDataKey string The post data key.
Values System.Collections.Specialized.NameValueCollection The values.
return bool

OnPreRender() protected method

Generates the captcha if it hasn't been generated already.
protected OnPreRender ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
return void

RaisePostDataChangedEvent() public method

When implemented by a class, signals the server control to notify the ASP.NET application that the state of the control has changed.
public RaisePostDataChangedEvent ( ) : void
return void

Render() protected method

protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
return void