1

I get some error messages from the back end service and I want them to be displayed in the Validation Summary control on the page.

I am using MVC 3 and ValidationSummary is not on the page till a validation fails due to unobtrusive stuff i believe.

I looked at the following example but it does not work with MVC 3.

Does anyone knows how to simply insert an error message in Validation summary control in MVC 3 with all the unobtrusive stuff switched on?

Thanks,

Dexter

Community
  • 1
  • 1
Varun
  • 307
  • 3
  • 16

1 Answers1

0

It sounds like this article on Remote Validation should do the trick.

Of course, you will still need to make sure you print the ValidationSummary in your views:

<%= Html.ValidationSummary("There are errors that must be fixed:")%>
shanabus
  • 12,989
  • 6
  • 52
  • 78