asp.net form validation. Server-side or client-side

Posted by Jeroen on Stack Overflow See other posts from Stack Overflow or by Jeroen
Published on 2010-03-22T02:46:02Z Indexed on 2010/03/22 2:51 UTC
Read the original article Hit count: 377

Here's (i think) an interesting question.

With AJAX more and more common i feel more and more like doing all form validation server-side.

Picture a registration form pre-AJAX. You have all your validation client-side using the common asp validation controls and validation summery...except...checking username availability, check emailadress availability, captcha and what not. So you end up with 2 kinds of validation and so presenting the user with 2 different UI's at 2 different moments. 2 words come to my mind. Ugly. Inconsistent.

So here's the question. Why not do all the validation server-side (using AJAX or not).

(I'm not using JQuery yet, should i?)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about form-validation