6
Reply

Using Data Annotations for Model Validation

Anand MR

Anand MR

Jul 4 2015 7:26 AM
567
Hi Frides,
 
         I am using Data Annotations for Model Validation in my MVC 5 application.For Required Field validation while click the save button Only drop down field get validated first.Its not showing rest of the TextBox. After selecting the values for dropdown list, then click the save button now rest of the textbox get validated in this page.
Please give me the solution while click the save button all the mandatory fields should be validated if i am not entering on any of the Textbox or Dropdown list in this page.
 
Please look on to the below screen .. 
Hi friends,
 
 
 
 
 
 
 
Thanks 

Answers (6)