I have the following in my view:
@Html.LabelFor(Function(model) model.StationName)
But would like to include an asterisk for each required field. If I change the display name in my model definition it then adds an asterisk to the index view too. How would I do this?
Here’s a heuristic (I can’t give you exact code because I don’t have it here):
content-afterkeyword; not sure though.labeltags.labeltag refers to aninputtag that has the required field validation attribute on it (again, don’t have the name in front of me), apply the css class created in step 1 to the label.