This article is a mirror article of machine translation, please click here to jump to the original article.

View: 20771|Reply: 2

[ASP.NET] [required] invalid workaround in MVC

[Copy link]
Posted on 4/20/2016 1:11:29 PM | | |


First, let's define the entity class:




Define it on the page:




Be sure to define the Html.ValidationMessageFor thing

Finally, we start the web page, damn it, it doesn't work!!! It doesn't work!!! Why didn't it be verified!! Ten thousand stumps in my heart!!!!

In the end, we found that we did not introduce two jquery validation files



Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima! Nima!




Previous:The placeholder in MVC displays the display name attribute value
Next:Regarding the issue with ajax.beginform not executing the success method in MVC
Posted on 2/14/2017 5:22:15 PM |
jquery.unobtrusive-ajax.min.js:5 Uncaught TypeError: a(...).live is not a fun...
http://www.itsvse.com/thread-3114-1-1.html
(Source: Architect)
Posted on 2/14/2017 5:25:56 PM |
Uncaught TypeError: a(...). parents(...). andSelf is not a function
http://www.itsvse.com/thread-3505-1-1.html
(Source: Architect)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com