0

While adding the validations in the application, should we add those in models or through JavaScript and what is the difference in both these kinds of validation? What is good practice and how they differ?

Marek Lipka
  • 50,622
  • 7
  • 87
  • 91
Aditya Tiwari
  • 204
  • 4
  • 17
  • 5
    Front-end validation, while provides good user experience, is also easy to bypass and therefore you have to supplement it by server side validation to assure consistency of your data. – Marek Lipka Mar 05 '19 at 07:31
  • This link provides great explanation for the difference between the same. https://stackoverflow.com/questions/162159/javascript-client-side-vs-server-side-validation – Rohan Mar 05 '19 at 12:00

0 Answers0