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
To achieve the same in bootstrap 4, use the following:
@if (ViewData.ModelState[""] != null && ViewData.ModelState[""].Errors.Count() > 0) { @Html.ValidationSummary(true) }