RE: Should validation (did the user enter a real date) occur server-side or client-side? Why?
if we are using .net validation controls then validation is always done at server on client browser it depends 1. on type of browser if browser version is less then 4.0 then it is not done 2. if client have switched off javascript execution on it's browser on it's own through property /settings 3. in coadding page attribute ClientTarget Downlevel is defined then also validation is done only on the server
RE: Should validation (did the user enter a real date)...
Its not that validation has to be done only on the client side depending on the situation it varies if it is not required to fetch data from the database and validate client side validation can be done.
server side validation is done whenever it is required since it utilizes the server side resources
RE: Should validation (did the user enter a real date)...
It Depends on your project if you want to do simple calculations than go ofor client side validations like javascript and if the data you are validating is confident and precious than go for server side validating
RE: Should validation (did the user enter a real date) occur server-side or client-side? Why?
Well it acn be done from both sides(AServer as well as Client). From Server side you can use Regular Validation Expression for date in different formats where same thing can be done from Client side by using javascript(JS). So both of them can be use
RE: Should validation (did the user enter a real date) occur server-side or client-side? Why?
If you use the asp.net validation controls then the validation is performed both on the client side as well as server side.
So to have a better performance it's best to maintain ponly client side validation to check the date validation. And it's better to use client side script i.e javascript. So that the validation can be performed only on client side and can avoid to have validation controls so that they have a validation check on server side also .
RE: Should validation (did the user enter a real date) occur server-side or client-side? Why?
It's upon you what you prefer that can be done on both sides best practice says it should be done on both side just to be on the safer side becuse there is some possibility that client side validation can be hacked(disabled) by some vulnerable scripts so to be on safer side do it on server side as well as client side.