views:

41

answers:

3

Hi,

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..

+3  A: 

The ASP.NET validators will also check server side. You can check a boolean value to see if any have been violated. If JavaScript is disabled the jQuery will do nothing, but the ASP.NET will still be able to check.

You can of course combine the jQUery with your own server-side validation, but it isn't built-in.

Brendan Enrick
A: 

The ASP.NET validator controls are a lot easier for the average asp.net developer to use. I think using jquery is probably a lot "cleaner" and more flexible.

Coding Gorilla
A: 
Joel Coehoorn