Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Wisej.Web.EmailValidationRule
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Validates email addresses.
Initializes a new instance of EmailValidationRule.
String[]: Returns or sets a list of invalid domains: i.e. "dropmail.com", "protonmail.com". (Default: null
)
String: Returns or sets the name of the validation rule. (Default: "Email"
)
Boolean: Returns or sets whether the control can be empty or its required to have a value. (Default: False
)
String[]: Returns or sets a list of valid domains: i.e. "mycompany.com", "gmail.com", "hotmail.com". (Default: null
)
Validates the control using the validation rule.
Returns: Boolean. true if the validation is successful; otherwise false.
Wisej.Web.Validation
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Returns a value indicating whether a control can be extended.
Removes all validation rules.
Removes all the validation rules from the control .
Sets the list of validation rules associated with the specified control .
You can add an handler to this event and handle the successful validation of all the controls that have a set of validation rules in one place.
You can add an handler to this event and handle the validation of all the controls that have a set of validation rules in one place.
Parameter | Type | Description |
---|---|---|
Adds a common validation system to any .
You can drop this extender on any design surface to add validation rules to any control at design time using the added ValidationRules property. You can also use this component at runtime and invoke the method directly. Validation rules are executed in the order they are added to the array. When a validation rule fails validation, the next rules are NOT executed and the property of the control's event is set to true.
Initializes a new instance of the class.
Initializes a new instance of the class attached to a implementation.
Name | Type | Description |
---|
: Associates an to the extender."/> (Default: null
)
When this property is null (default), the validation extender sets the property of the control being validated to the corresponding when a validation rule fails. Otherwise it invokes the method passing the control that failed validation and the corresponding string. You may use an instance of to display error icons and messages. But you can also implement the interface in a custom class and manage errors however required by the application. A third option is to assign a (or any that implements ) to the property to let the validation extender set the text property to the corresponding string.
The (or any that implements ) is automatically hidden ( is set to false) when there is no error message to display.
: Returns or sets the object that contains programmer-supplied data associated with the extender. (Default: null
)
Parameter | Type | Description |
---|
Returns: . true if the control can be extended; otherwise, false.
Returns the collection of associated with the specified control .
Parameter | Type | Description |
---|
Returns: . Array of the validation rules associated to the control .
Fires the event.
Parameter | Type | Description |
---|
Fires the event.
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Fired after any control associated to the extender has been successfully validated.
Fired when the any control associated to the extender is being validated.
Initializes a new instance of the class.
: Returns or sets whether to format the value of the control after validation. (Default: False
)
: Returns or sets the character mask used to validate the telephone number. It is based on the implementation. (Default: ""
)
: Returns the used to validate the control's text.
: Returns or sets the name of the validation rule. (Default: "Telephone"
)
: Returns or sets whether the control can be empty or its required to have a value. (Default: False
)
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Returns: . true if the validation is successful; otherwise false.
Initializes a new instance of the class.
: Returns or sets the maximum value; or null for no maximum. (Default: null
)
: Returns or sets the minimum value; or null for no minimum. (Default: null
)
: Returns or sets the name of the validation rule. (Default: "Integer"
)
: Returns or sets whether the control can be empty or its required to have a value. (Default: False
)
Parameter | Type | Description |
---|
Returns: . true if the validation is successful; otherwise false.
Initializes a new instance of the class.
: Returns or sets the required number of decimal digits; or null to allow any number of decimals. (Default: null
)
: Returns or sets whether to format the value of the control after validation. (Default: False
)
: Returns or sets the maximum value; or null for no maximum. (Default: null
)
: Returns or sets the minimum value; or null for no minimum. (Default: null
)
: Returns or sets the name of the validation rule. (Default: "Decimal"
)
: Returns or sets whether the control can be empty or its required to have a value. (Default: False
)
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Returns: . true if the validation is successful; otherwise false.
Initializes a new instance of the class.
: Returns or sets the currency symbol to validate. The default is null to use the current . (Default: null
)
: Returns or sets the required number of decimal digits; or null to use the current . (Default: null
)
: Returns or sets whether to format the value of the control after validation. (Default: False
)
: Returns or sets the maximum value; or null for no maximum. (Default: null
)
: Returns or sets the minimum value; or null for no minimum. (Default: null
)
: Returns or sets the name of the validation rule. (Default: "Currency"
)
: Returns or sets whether the control can be empty or its required to have a value. (Default: False
)
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Returns: . true if the validation is successful; otherwise false.
Provides data for the event handlers.
: Control being validated.
: Message to return when validation fails.
: Rules associated to the being validated.
Name | Description |
---|
Validates the control using a custom expression.
Initializes a new instance of .
: Returns or sets the filter property (i.e. ) property on editable controls that support filtering of the keys as they are typed. (Default: null
)
: Returns or sets the name of the validation rule. (Default: "Regex"
)
: Returns or sets the used to validate the control. (Default: null
)
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|
Returns: . true if the validation is successful; otherwise false.
Initializes a new instance of the class.
: Returns or sets the required minimum number of characters. (Default: null
)
: Returns or sets the name of the validation rule. (Default: "Required"
)
: Returns or sets whether the control can be empty or its required to have a value. (Default: True
)
: Returns or sets whether empty controls with spaces are considered empty and fail validation. (Default: True
)
Parameter | Type | Description |
---|
Returns: . true if the validation is successful; otherwise false.
control
container |
extendee | The control to be extended. |
control | Control associated with the validation rules to retrieve. |
e |
e |
control |
control | Control associated with the validation rules. |
rules | List of validation rules to enforce on the specified control . |
control |
control |
control |
control |
control |
control |
control |
control | Control being created. |
control |
control |
Wisej.Web.ValidationRule
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents a validation rule within an instance of the Validation extender.
Initializes a new instance of a ValidationRule implementation.
Initializes a new instance of a ValidationRule implementation using the specified name and optional invalidMessage .
Boolean: Enables or disables the validation rule. Since 3.2.7 (Default: True
)
IErrorProvider: Returns or sets the control that displays the InvalidMessage string. (Default: null
)
String: Returns or sets the error message for the validation rule. (Default: null
)
String: Returns or sets the name of the validation rule. (Default: null
)
Invoked when the control associated with the validation rule is created and ready to be rendered on the client.
The ControlCreated event is fired when the control is made visible the first time and it's ready to be displayed on the client browser; it's not fire when the control is constructed. Use this overload if your custom ValidationRule needs to read or set properties on the control itself. i.e. set the Filter, or format strings.
Invoke after the control has been validated successfully.
Invoked when the control is being validated.
Returns: Boolean. true if the validation is successful; otherwise false.
Wisej.Web.ValidationEventHandler
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents the method that will handle the Validating event.
An that represents the container of the extender.
Control to remove from the extender.
Represents the method that will handle the event.
Name | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
Name | Type | Description |
---|---|---|
Name | Description |
---|---|
name
Name of the validation rule.
invalidMessage
Error message related to the validation rule.
control
Control being created.
control
Control that validated successfully.
control
Control being validated.
Validates the control using a custom Regex expression.
Validates controls that cannot be left empty.
Validates telephone numbers.
Validates decimal values.
Validates currency values.
Validates long integer values.
Validates email addresses.
sender
The source of the event.
e
A ValidationEventArgs that contains the event data.
Fired when the any control associated to the Validation extender is being validated.
Fired after any control associated to the Validation extender has been successfully validated.