Skip to main content
Version: 4.1

RegexValidationRule

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Validates the control using a custom Regex expression.

public class RegexValidationRule : ValidationRule

Constructors​

Instance member RegexValidationRule()​

Initializes a new instance of RegexValidationRule.

Properties​

Instance member FilterExpression​

String: Returns or sets the filter property (i.e. Filter) property on editable controls that support filtering of the keys as they are typed. (Default: null)

Instance member Name​

String: Returns or sets the name of the validation rule. (Default: "Regex")

Instance member ValidateExpression​

String: Returns or sets the Regex used to validate the control. (Default: null)

Methods​

Instance member OnControlCreated(control)​

Invoked when the control associated with the validation rule is created and ready to be rendered on the client.

ParameterTypeDescription
controlControlControl being created.

Instance member OnValidating(control)​

Validates the control using the validation rule.

ParameterTypeDescription
controlControl

Returns: Boolean. true if the validation is successful; otherwise false.