I have a couple of questions about using a range validator on a C#.net 2010 web application. I am validating dates that must be between 01/01/2000 and 12/31/2020. My range validation works, however a couple of issues have shown up which includes the following: 1. a user can enter a date like 07.15.2012 and the date is accepted with no error. Why do this occur? My company wants to force the user to enter a date like 07/15/2012 and not accept a date like 07.15.2012. Can you tell me how to force this edit? Do I need to use regular expressions?
2. When the user enters a wrong date, the error message shows up for like a couple of seconds and goes away. This occurs before a user hits the 'enter' button to proceed to the next web page. Can you tell me how to make this error message display longer and/or only display when the user clicks the next button?
Range validator 2010
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Atul KumarRank #1,527 · 1K reputationPosted Jul 26, 2012, 9:37 PM EDT
The reason of your error message to gone away could be the postback.
scampercat187 reputationPosted Jul 28, 2012, 5:39 PM EDT
2. Could you explain what could be wrong with the postback? I do not know what you mean by
"The reason of your error message to gone away could be the postback."?
Thank you very much for your assitance!