C# Class mojoPortal.Web.UI.RecaptchaControl

Inheritance: System.Web.UI.WebControls.WebControl, IValidator
Afficher le fichier Open project: joeaudette/mojoportal

Private Properties

Свойство Type Description
CheckIfRecaptchaExists bool
GenerateChallengeUrl string
SetupAjaxScripts void

Méthodes publiques

Méthode Description
RecaptchaControl ( ) : System

Initializes a new instance of the RecaptchaControl class.

Validate ( ) : void

Perform validation of reCAPTCHA.

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected OnInit ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnPreRender() protected méthode

protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
Résultat void

RecaptchaControl() public méthode

Initializes a new instance of the RecaptchaControl class.
public RecaptchaControl ( ) : System
Résultat System

Render() protected méthode

protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter
Résultat void

RenderContents() protected méthode

protected RenderContents ( System.Web.UI.HtmlTextWriter output ) : void
output System.Web.UI.HtmlTextWriter
Résultat void

Validate() public méthode

Perform validation of reCAPTCHA.
public Validate ( ) : void
Résultat void