I want to show a ValidationSummary mcv3 with \"alert-error\" Bootstrap styling.
I\'m using a Razor view, and I show model errors with this code:
@Html.V
In MVC 5, ViewData.ModelState[""] always returned a null value. I had to resort to the IsValid command.
ViewData.ModelState[""]
IsValid
if (!ViewData.ModelState.IsValid) { × Validation Errors @Html.ValidationSummary() }