Validator.Range Method (Double, Double, String)
Defines a validation test that tests whether a decimal number falls within a specific range.
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
public static IValidator Range( double minValue, double maxValue, string errorMessage )
Parameters
- minValue
- Type: System.Double
The minimum value. The default is 0.
- maxValue
- Type: System.Double
The maximum value.
- errorMessage
- Type: System.String
The error message to display if validation fails.
Show: