Hello!
I've got a web form with some form elements (TextBox controls) and validators. There is one TextBox for a date entry and a CompareValidator checking for a valid date. Client side validation is enabled. This date TextBox contains a default text showing the expected format (DD.MM.YYYY). If the user clicks on the TextBox to enter a value the initial value is removed by javascript. The problem now is that it's not required to enter a date, but when, it's required to enter a valid date. So actually the CompareValidator also fires on the initial value DD.MM.YYYY and says that it's not a valid date. Is it possible to ignore this initial value or set it to an empty string on submit before client side validation? How can i do that?
Thanks!
Kind Regards,
Andreas
...
Go to the complete details ...