MVC Developer Question:
Download Job Interview Questions and Answers PDF
Explain me what is Validation Summary in MVC?
Answer:
The ValidationSummary helper method generates an unordered list (ul element) of validation messages that are in the ModelStateDictionary object.
The ValidationSummary can be used to display all the error messages for all the fields. It can also be used to display custom error messages. The following figure shows how ValidationSummary displays the error messages.
The ValidationSummary can be used to display all the error messages for all the fields. It can also be used to display custom error messages. The following figure shows how ValidationSummary displays the error messages.
Download MVC Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain me what is the significance of NonActionAttribute? | Tell us what is the role of a controller in an MVC application? |