Validation in ASP.NET and C #

Which is better - client-side validation or server-side validation?

+5
source share
5 answers

Server-side validation is required because client-side validation can be changed. However, client-side validation usually provides a better user interface, since it requires fewer messages. Therefore, I would recommend using both.

+10
source

You MUST perform server side validation. Otherwise, anyone can send anything (think of a browser with JavaScript disabled or a custom fake browser).

, , .

+4

:

.

.

:

.

+3

ASP.NET , . , , , .

, .

, .

+1

AJAX.

, , .

, , , . , , DRY ( ) / (: ASP.NET ).

, , POSTS Ajax: , POST ( - ), JSON , - . , JSON, , , .

, , POST ( ASP.NET, ), .

0

All Articles