Which is better to do client side or server side validation?
In our situation we are using
- jQuery and MVC.
- jSon data to pass between our View and Controller.
Alot of the validation I do is validating data as users enter it. For example I use the the keypress event to prevent letters in a text box, set a max number of characters and that a number is with in a range.
I guess the better question would be, Are there any benefits to doing server side validation over client side?
Awesome answers everyone. The website that we have is password protected and for a small user base(<50). If they are not running javascript we will send ninjas. But if we were designing a site for everyone one I'd agree to do validation on both sides. ? No one suggested server side testing ? Brad8118 (a minute ago) [remove this comment]