C# Class mojoPortal.Web.UI.RecaptchaControl

Inheritance: System.Web.UI.WebControls.WebControl, IValidator
ファイルを表示 Open project: joeaudette/mojoportal

Private Properties

Property Type Description
CheckIfRecaptchaExists bool
GenerateChallengeUrl string
SetupAjaxScripts void

Public Methods

Method Description
RecaptchaControl ( ) : System

Initializes a new instance of the RecaptchaControl class.

Validate ( ) : void

Perform validation of reCAPTCHA.

Protected Methods

Method Description
OnInit ( EventArgs e ) : void
OnPreRender ( EventArgs e ) : void
Render ( System.Web.UI.HtmlTextWriter writer ) : void
RenderContents ( System.Web.UI.HtmlTextWriter output ) : void

Private Methods

Method Description
CheckIfRecaptchaExists ( ) : bool

Iterates through the Page.Validators property and look for registered instance of RecaptchaControl.

GenerateChallengeUrl ( bool noScript ) : string

This function generates challenge URL.

SetupAjaxScripts ( ) : void

Method Details

OnInit() protected method

protected OnInit ( EventArgs e ) : void
e System.EventArgs
return void

OnPreRender() protected method

protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
return void

RecaptchaControl() public method

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

Render() protected method

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

RenderContents() protected method

protected RenderContents ( System.Web.UI.HtmlTextWriter output ) : void
output System.Web.UI.HtmlTextWriter
return void

Validate() public method

Perform validation of reCAPTCHA.
public Validate ( ) : void
return void