I'm sure there are good reasons for doing this client side, but I've never
found one.
Data entry validation always needs to be done server-side when the user
submits the form: so why not just settle for that and do the validation
server side? You're doing a postback anyway, so there's no extra time taken
worth talking about.
I know that some people like to do validation as the data is entered, but I
don't really like that - as a user or as a designer: but I know opinions
vary. However, good practice determines that all the data is checked
server-side on submit anyway, so checking client-side is just doing the job
twice IMHO.
[In case anyone asks, the reason that data entry has to be checked server
side anyway is because you cannot be certain that the data was submitted
from the form exactly as you wrote it. People can turn off scripting; they
can save the page and modify it. All sorts of nefarious stuff can go on
between the server and client]
I'm tempted to sign off as Paranoid Peter, but I'll just make do with my
usual
HTH
Cheers
Peter
<ne********@gmail.comwrote in message
news:11**********************@n15g2000prd.googlegr oups.com...
hi i'm new to .net field, i'm developing one application using ASP.NET
and C#.NET in that i get one problem that is how to validate user
entered date and time formate, for this problem wheather i have to use
RegularExpressionValidator or any other Code, Give the response soon
i'm waiting for reply