RangeValidator
Previous | Home | Next |
The RangeValidator control is used to check that the user enters an input value that falls between two values. It is possible to check ranges within numbers, dates, and characters.The validation will not fail if the input control is empty. Use the RequiredFieldValidator control to make the field required.The validation will not fail if the input value cannot be converted to the data type specified. Use the CompareValidator control, with its Operator property set to ValidationCompareOperator.DataTypeCheck, to verify the data type of the input value. Property: 1.BackColor ::The background color of the RangeValidator control 2.ControlToValidate ::The id of the control to validate 3.Display ::The display behavior for the validation control. 4.EnableClientScript ::A Boolean value that specifies whether client-side validation is enabled or not 5.Enabled ::A Boolean value that specifies whether the validation control is enabled or not 6.ErrorMessage ::The text to display in the ValidationSummary control when validation fails. Note: This text will also be displayed in the validation control if the Text property is not set
Type ::Specifies the data type of the value to check. The types are: * Currency * Date * Double * Integer * String MaximumValue ::Specifies the maximum value of the input control MinimumValue ::Specifies the minimum value of the input control
RangeValidator ************************************************************************* ************************************************************************* <%@ Page Language="C#" AutoEventWireup="true" CodeFile="RangeValidator.aspx.cs" Inherits="_Default" %>RangeValidator
Previous | Home | Next |