Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript vs ASP.NET validation, which one to choose?

Concerning validation,

  1. Are javascript and ASP.NET validation used for the same purpose?

  2. If yes, which one do you recommend? Please provide a simple explanation.

Thanks

like image 929
Bart Avatar asked May 19 '10 22:05

Bart


1 Answers

Always validate on the server. Client-side validation is only to make the user experience more pleasant. Which is important, but only important as far as the experience goes. Validation on the client is not important at all for the purposes of validation, because anything running on the client machine can be compromised or bypassed by the same client.

like image 103
Rex M Avatar answered Sep 28 '22 07:09

Rex M