C# Class SenseNet.Portal.UI.Controls.Captcha.CaptchaControl

Inheritance: FieldControl, INamingContainer, IValidator
Afficher le fichier Open project: maxpavlov/FlexNet

Private Properties

Свойство Type Description
CssStyle string
GenerateNewCaptcha void
GetCachedCaptcha CaptchaImage
HtmlColor string
RemoveCachedCaptcha void

Méthodes publiques

Méthode Description
GetData ( ) : object

Gets object data.

Exception handling and displayed is done at ContentView level; FormatExceptions and Exceptions are handled and displayed at this level. Should you need custom or localized error messages, throw a FieldControlDataException with your own error message.

SetData ( object data ) : void

Sets data within the FieldControl

System ( ) : void
ValidateCaptcha ( ) : void

Validate the user's text against the CAPTCHA text

Méthodes protégées

Méthode Description
CreateChildControls ( ) : void
GetSR ( string strResId ) : string
LoadControlState ( object state ) : void
OnInit ( System e ) : void
OnPreRender ( System e ) : void
OnUnload ( System e ) : void
SaveControlState ( ) : object

Retrieve the user's CAPTCHA input from the posted data

Private Methods

Méthode Description
CssStyle ( ) : string

returns css "style=" tag for this control based on standard control visual properties

GenerateNewCaptcha ( ) : void

generate a new captcha and store it in the ASP.NET Cache by unique GUID

GetCachedCaptcha ( string guid ) : CaptchaImage
HtmlColor ( System color ) : string

returns HTML-ized color strings

RemoveCachedCaptcha ( string guid ) : void

Method Details

CreateChildControls() protected méthode

protected CreateChildControls ( ) : void
Résultat void

GetData() public méthode

Gets object data.
Exception handling and displayed is done at ContentView level; FormatExceptions and Exceptions are handled and displayed at this level. Should you need custom or localized error messages, throw a FieldControlDataException with your own error message.
public GetData ( ) : object
Résultat object

GetSR() protected static méthode

protected static GetSR ( string strResId ) : string
strResId string
Résultat string

LoadControlState() protected méthode

protected LoadControlState ( object state ) : void
state object
Résultat void

OnInit() protected méthode

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

OnPreRender() protected méthode

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

OnUnload() protected méthode

protected OnUnload ( System e ) : void
e System
Résultat void

SaveControlState() protected méthode

Retrieve the user's CAPTCHA input from the posted data
protected SaveControlState ( ) : object
Résultat object

SetData() public méthode

Sets data within the FieldControl
public SetData ( object data ) : void
data object Data of the Field wrapped
Résultat void

System() public méthode

public System ( ) : void
Résultat void

ValidateCaptcha() public méthode

Validate the user's text against the CAPTCHA text
public ValidateCaptcha ( ) : void
Résultat void