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?
Loading
scampercatPosted Jul 28, 2012, 9:39 PM
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!
Atul KumarPosted Jul 27, 2012, 1:37 AM
The reason of your error message to gone away could be the postback.