Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
foreach (ModelState state in ViewData.ModelState.Values) { foreach (ModelError error in state.Errors) { var ex = error; } }
No comments:
Post a Comment