Skip to main content
Version: 3.5

TelephoneValidationRule

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Validates telephone numbers.

public class TelephoneValidationRule : ValidationRule

Constructors

Instance memberTelephoneValidationRule()

Initializes a new instance of the TelephoneValidationRule class.

Properties

Instance memberFormat

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

Instance memberMask

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

Instance memberMaskedTextProvider

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

Instance memberName

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

Instance memberRequired

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

Methods

Instance memberOnValidated(control)

Invoked after the control has been successfully validated.

ParameterTypeDescription
controlControl

Instance memberOnValidating(control)

Validates the control using the validation rule.

ParameterTypeDescription
controlControl

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