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

asp.net, javascript, validation

Solution

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.

Problem

Concerning validation, Are javascript and ASP.NET validation used for the same purpose? If yes, which one do you recommend? Please provide a simple explanation. Thanks

Original source