ASP.Net + MVC + VS 2008

Can anyone advise what is the best way to check on the client and server side.

Or we go for Data Annotation if it supports VS2008. Or go into jQuery ...

Can anyone direct me to any example, a link is welcome.

+3
source share
3 answers

xVal is highly recommended:

http://xval.codeplex.com/

http://blog.codeville.net/2009/01/10/xval-a-validation-framework-for-aspnet-mvc/

With xVal, you can do both client and server parts with data annotations and jQuery or other validation mechanisms such as a lock ....

+6
source

- , jQuery - . /, , /.

+1

The simple answer: "Both!"

You want your users to have a fast and smooth user interface, so instant feedback is important (if you cannot guarantee that your round-trip time is super-fast) and saves on round trips. However, you cannot guarantee that only your clients with this confirmed entry are sent to your server, so you also need to check it.

0
source

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


All Articles