skip to content »

Validating date with rangevalidator control in

validating date with rangevalidator control in-75

Minimum Value and Maximum Value specify the valid range of control inputted value.validation ignore if you not set a requiredfieldvalidator and user leave input field without entering any value.

NET, you might have been introduced to a number of different types of controls, whether HTML server controls or Web server controls.For this purpose, we parse the entered date in such culture which format is represented as follow "yyyy-MM-dd-hh-mm-ss" and saving it in Rad Input Validation Value client property.When using Range Validator you need to set its Maximum Value and Minimum Value in such format in order to work correctly.rangevalidator control have two property Maximum Value and Minimum Value to specify validation range.rangevalidator Control To Validate property value set the input control to validate.Range Validator control check whether input control value is within a specified range of values.

using Type property we can tell rangevalidator of validating values data type as like integer, date, double, currency or string.

Below is my code: This works, but the caveat is that this allows dates that may be out of range of SQL dates less than 1753 or you may have a date range (no future date entries).

This does work, but Chris Van Opstal's may be needed for SQL date edits.

this example show you how can we validate date range using rangevalidator control.

rangevalidator control force user to select a date from calendar control between a specified date range.

This paper focuses on a series of controls that stand out from the rest—.