Here's a commercial solution that will put all the validators under one
error message without writing any custom code (especially figuring it all
out in JavaScript). My product, "Professional Validation And More", offers
the MultiConditionValidator. Its job is to allow you to blend the logic of
all other validators under one error message. Details are at
http://www.peterblum.com/vam/home.aspx.
--- Peter Blum
www.PeterBlum.com
Email:
"Paul" <> wrote in message
news: om...
> Hi,
>
> I have a form where a user is required to enter a start date and an
> end date. Both are required and must between a specific date range
> (e.g. 01/01/1900 and 01/01/2099) and the end date cannot preceed the
> start date. How can I perform the necessary validation using the least
> number of validation controls. For example is it necessary that I add
> a requiredfieldvalidator for the start date field and end date field
> to make sure a value has been entered, a rangevalidator for the start
> date and end date field to make sure the values are in the specified
> range and a comparevalidator to make sure that the end date does not
> preceed the end date. 5 controls seems a bit excessive.
>
> Thanks
>
> Paul