TelephoneValidationRule
Wisej.Web.TelephoneValidationRule
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Validates telephone numbers.
public class TelephoneValidationRule : ValidationRule
Constructors
TelephoneValidationRule()

Initializes a new instance of the TelephoneValidationRule class.
Properties
Format

Boolean: Returns or sets whether to format the value of the control after validation. (Default: False
)
Mask

String: Returns or sets the character mask used to validate the telephone number. It is based on the MaskedTextProvider implementation. (Default: ""
)
MaskedTextProvider

MaskedTextProvider: Returns the MaskedTextProvider used to validate the control's text.
Name

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

Boolean: Returns or sets whether the control can be empty or its required to have a value. (Default: False
)
Methods
OnValidated(control)

Invoked after the control has been successfully validated.
OnValidating(control)

Validates the control using the validation rule.
Returns: Boolean. true if the validation is successful; otherwise false.
Last updated
Was this helpful?