I'm using ASP.NET MVC2 and Data Annotations.
I've decorated a property in my buddy class with the Required attribute.
Is there a way to get the Html.LabelFor() helper method to automatically display an asterix to signify that the field is required?
Only ways I can think of to do this are:
a) Extend LabelExtensions
Or
b) Manually add the asterix to the DisplayName attribute, e.g. "My Field *"
The latter is simplest, but introduces a dependency between the DisplayName and Required attributes.
Any other suggestions?