I'm trying to get a input that will show error messages in two places, a asterisk beside the input field and then a more detailed error message at the bottom of the section. Currently I have
<div>
<div>Html.DropDownListFor(x => x.selectMode, new SelectList(Model.modes))</div>
@Html.ValidationMessageFor(x => x.selectMode,"*",new {@class = " text-danger"})
</div>
Which displays the asterisk when the input is invalid just fine, but the problem is that it overrides the other message that's suppose to be at the bottom so it doesn't show.
<div>
@Html.ValidationMessageFor(x => x.selectMode,"Select a valid mode",new {@class = " text-danger"})
</div>
What should I be doing differently to make both error messages display?
EDIT: The model itself has only one error per field, I am just trying to make it display twice in two different places using @Html.ValidationMessageFor()
or something similar.