RegexValidationRule
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Validates the control using a custom Regex expression.
- C#
- VB.NET
public class RegexValidationRule : ValidationRule
Public Class RegexValidationRule
Inherits ValidationRule
Constructors
RegexValidationRule()
Initializes a new instance of RegexValidationRule.
Properties
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)
Name
String: Returns or sets the name of the validation rule. (Default: "Regex")
ValidateExpression
String: Returns or sets the Regex used to validate the control. (Default: null)
Methods
OnControlCreated(control)
Invoked when the control associated with the validation rule is created and ready to be rendered on the client.
| Parameter | Type | Description |
|---|---|---|
| control | Control | Control being created. |
OnValidating(control)
Validates the control using the validation rule.
| Parameter | Type | Description |
|---|---|---|
| control | Control |
Returns: Boolean. true if the validation is successful; otherwise false.