how to verify weather the form contains validations or not in MVC 4.0 Razor application.
because in my form 50 controls there, in that 30 controls are mandatory.
i filled 29 controls with data, when i click on save button it shows
pop up like "Please Enter data". how can i ?
Loading
Jignesh TrivediPosted May 9, 2013, 8:21 AM
hi,
You can use Data Annotation for validation in MVC 4.0
Please refer
http://www.codeproject.com/Tips/160184/Basic-Data-Validation-Using-Data-Annotations-ASP-N
http://www.asp.net/mvc/tutorials/older-versions/models-%28data%29/validation-with-the-data-annotation-validators-cs
http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-6
hope this will help you.