开发者

MVC 2 ModelState - Show all Errors

开发者 https://www.devze.com 2023-01-04 22:45 出处:网络
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

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 id开发者_如何学Goeas?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消