I have a date field on my page which can be entered manually as well as from a calendar.

Now for the manual part, i have added a custom validator and written a javascript file for that. The validator works fine and shows error message if there is an invalid date.

But now the page does not go to the next page when i click the next button.Earlier instead of the Custom validator, i had a regular expression validator for the date field which worked fine and i was able to go to the next page. But since it could not handle all the validations, i opted for the custom validator.

So i feel the problem is with the javascript file.....

I have two more questions....

1. What is the significance of WebUIValidation.js file ?

2. When an invalid date is entered , i get the errormessage. But now if i enter the date through the calendar, the errormessage is still there....

Thanks in advance to anybody who could help........