ASP.NET Check Input Data Type using RangeValidator to validate input control for specified range of value. The RangeValidator control belongs to System.Web.UI.WebControls
Syntax
Property | Description |
---|---|
ControlToValidate | Specifies control name which needs to be validate. |
Display | Specifies behavior of the error message. |
EnableClientScript | Specifies whether or not client-side validation is enabled. |
Enabled | Specifies whether or not validation control is enabled or not. |
ErrorMessage | Specifies error messageto be display in validation summary. |
ForeColor | Specifies error message color. |
IsValid | Indicate if associate control passes validation or not. |
SetFocusOnError | Set focus on associate control if validation fails. |
Text | Specifies text to be display if validation fails. |
ValidationGroup | Specifies validation group name. |
Validate | Update the isvalid propery. |
ValidateGetValidationProperty | Determineing validation property of a control, if it exists. |
Type | Set data type of input control value. |
MinimumValue | Holds minimum value of the valid range. |
MaximumValue | Holds maximum value of the valid range. |
Above example will produce following output