Chris Klepeis
Chris Klepeis

Reputation: 9973

MVC 2 ModelState - Show all Errors

My asp.net form is throwing errors relating to an incorrect model, but on the page it's not showing me what model field threw the error. I'd like to Debug.WriteLine all errors in the ModelState but am unsure how to go about it. Any ideas?

Upvotes: 1

Views: 1420

Answers (1)

Palantir
Palantir

Reputation: 24182

Why wouldn't <%=Html.ValidationSummary()?> work?

Upvotes: 3

Related Questions