SaaS CMS has officially launched! Learn more now.

Class StaticValidator

Validator used to add error messages that is validated through server side code.

Inheritance
System.Object
StaticValidator
Namespace: EPiServer.XForms.WebControls
Assembly: EPiServer.XForms.dll
Version: 10.10.4
Syntax
public class StaticValidator : BaseValidator

Constructors

StaticValidator()

Declaration
public StaticValidator()

StaticValidator(String)

Initializes a new instance of the StaticValidator class.

Declaration
public StaticValidator(string errorMessage)
Parameters
Type Name Description
System.String errorMessage

The error message.

StaticValidator(String, String)

Initializes a new instance of the StaticValidator class.

Declaration
public StaticValidator(string errorMessage, string validationGroup)
Parameters
Type Name Description
System.String errorMessage

The error message.

System.String validationGroup

The validation group.

Methods

ControlPropertiesValid()

Declaration
protected override bool ControlPropertiesValid()
Returns
Type Description
System.Boolean

EvaluateIsValid()

Declaration
protected override bool EvaluateIsValid()
Returns
Type Description
System.Boolean

Render(HtmlTextWriter)

Declaration
protected override void Render(HtmlTextWriter output)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter output

Extension Methods