Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference of using asp.net validator controls vs JQuery for front end validation

Could you please tell me the difference between using asp.net validator controls vs JQuery for front end validation? What happens if the user turns off javascript on their browser?

Thank you..

like image 545
nav100 Avatar asked Dec 28 '22 07:12

nav100


1 Answers

The difference is that "front end" validation by itself has nothing to do with security or real validation. It's entirely a performance optimization — a client validation failure saves a round trip to your server, helping you scale and allowing you to reduce the response time for your users. But the real validation work must take place server-side.

ASP.Net validation controls help you automate the server-side validation and keep it in sync with the client, while jQuery still requires you to write the server-side logic separately.

like image 182
Joel Coehoorn Avatar answered May 15 '23 17:05

Joel Coehoorn