DecimalValidationRule
Wisej.Web.DecimalValidationRule
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Validates decimal values.
public class DecimalValidationRule : ValidationRulePublic Class DecimalValidationRule
Inherits ValidationRuleConstructors
DecimalValidationRule()
Initializes a new instance of the DecimalValidationRule class.
Properties
DecimalDigits
Nullable<Int32>: Returns or sets the required number of decimal digits; or null to allow any number of decimals. (Default: null)
Format
Boolean: Returns or sets whether to format the value of the control after validation. (Default: False)
MaximumValue
Nullable<Decimal>: Returns or sets the maximum value; or null for no maximum. (Default: null)
MinimumValue
Nullable<Decimal>: Returns or sets the minimum value; or null for no minimum. (Default: null)
Name
String: Returns or sets the name of the validation rule. (Default: "Decimal")
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?

