C# Class SpecExpress.Web.Validator

Inheritance: System.Web.UI.WebControls.BaseValidator
显示文件 Open project: rbell/SpecExpress

Private Properties

Property Type Description
FormatErrorMessage string
GetLabelName string
TryConvertControlValue object
getTypeForProperty System.Type
setPropertyOnProxyObject object
validateProperty List

Public Methods

Method Description
Validator ( ) : System

Protected Methods

Method Description
AddAttributesToRender ( System.Web.UI.HtmlTextWriter writer ) : void
CreateChildControls ( ) : void
EvaluateIsValid ( ) : bool

Private Methods

Method Description
FormatErrorMessage ( List messages, ValidationSummaryDisplayMode displayMode ) : string
GetLabelName ( ) : string

Try and get the Property Name from label, if not found, default to PropertyName

TryConvertControlValue ( string controlValue ) : object

Attempt to convert from a string to the Property Type. Return null if it fails.

getTypeForProperty ( ) : Type
setPropertyOnProxyObject ( object value ) : object
validateProperty ( ) : List

Method Details

AddAttributesToRender() protected method

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

CreateChildControls() protected method

protected CreateChildControls ( ) : void
return void

EvaluateIsValid() protected method

protected EvaluateIsValid ( ) : bool
return bool

Validator() public method

public Validator ( ) : System
return System