This documentation is archived and is not being maintained.

Introduction to the RangeValidator Control

Use the RangeValidator control to validate that user input falls within a specified range. Set the RangeValidator control's ControToValidate property to the ID of the SelectionList or TextBox to validate.

Specify minimum and maximum range values by using the MinimumValue and MaximumValue properties. If the validation fails, the RangeValidator control displays the text in its ErrorMessage property.

When you add a RangeValidator control to a container control or template:

  • The ErrorMessage property is set to RangeValidator.
  • The StyleReference property is set to error, which maps to a predefined style by default.

See Also

RangeValidator Control | RangeValidator Class | Adding and Configuring a RangeValidator Control | Introduction to the Validation Controls