ASP.NET MVC 2 EnableClientValidation: Validation Group

I am using ASP.NET MVC 2, DataAnnotation and MicrosoftMvcValidation.js for validation. I have two forms , in my opinion, there is a way to use the Validation Group for client-side validation (for example, in ASP.NET Web formats).

thank

+3
source share
2 answers

The example I saw with the nerd dinner ( http://www.asp.net/mvc/videos/what-is-aspnet-mvc-80-minute-technical-video-for-developers-building-nerddinner ) uses a partial A class for modifying a dinner model by adding validation to specific elements. Thus, verification can be performed at the server level, but without server management.

But ... you can still use validation elements with asp.net mvc if that is what you mean.

0
source

Did you mean to show a summary of the errors? If so, you can use the HTML helper to summarize validation, such as Html.ValidationSummary (...).

Hope this helps!

0
source

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


All Articles