ASP.NET AJAX Controls

I use ASP.NET validation controls in an ASP.NET web form environment. It is the best approach to save all validation rules on the server, for example, use AJAX to validate a field without sending the entire page back.

I found one control called ValidatorCallout ( http://www.asp.net/ajax/ajaxcontroltoolkit/samples/ValidatorCallout/ValidatorCallout.aspx ), but was trying to figure out if there is a better approach.

+3
source share
1 answer

You should always perform server-side validation, regardless of whether you perform any client-side validation. This is because there are many ways to check clients, such as switching js or sending a custom request that doesn't use your page.

A good goal is to use the same validation rules on both the client and server. xVal is a good option for this.

, - . , , "". , , 2. . Firebug, , . .

, .

! , ! , !

+4

Source: https://habr.com/ru/post/1747230/


All Articles