ValidationRule
Wisej.Web.ValidationRule
Last updated
Was this helpful?
Wisej.Web.ValidationRule
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents a validation rule within an instance of the extender.
Initializes a new instance of a implementation.
Initializes a new instance of a implementation using the specified name and optional invalidMessage .
name
Name of the validation rule.
invalidMessage
Error message related to the validation rule.
: Enables or disables the validation rule. Since 3.2.7 (Default: True
)
Invoked when the control associated with the validation rule is created and ready to be rendered on the client.
control
Control being created.
Invoke after the control has been validated successfully.
control
Control that validated successfully.
Invoked when the control is being validated.
control
Control being validated.
Validates controls that cannot be left empty.
Validates telephone numbers.
Validates decimal values.
Validates currency values.
Validates long integer values.
Validates email addresses.
: Returns or sets the control that displays the string. (Default: null
)
: Returns or sets the error message for the validation rule. (Default: null
)
: Returns or sets the name of the validation rule. (Default: null
)
The 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 needs to read or set properties on the control itself. i.e. set the , or format strings.
Returns: . true if the validation is successful; otherwise false.
Validates the control using a custom expression.