I'd like to highlight field names instead of showing a separate error message when there is a validation error.
Is there any convenient way of doing this other than checking the ModelState Errors collection and wrapping each .LabelFor()
in an if
?
Also, I'd like to format labels as either bold, or add an asterisk if the model metadata has a [Required]
attribute.