It depends. If the male element associated with this shortcut is displayed using an html helper, for example: @Html.TextBoxFor(x => x.Male) , then I would use Html.LabelFor and save the lambdas and strong typing. Also I would never use:
@Html.Label("male", "Male")
I would use a view model and a strongly typed version:
@Html.LabelFor(x => x.Male)
and I would decorate my view model property with the [DisplayName] attribute so that I can control the message in my view model:
[DisplayName("foo bar")] public string Male { get; set; }
Thus, there are many different possible scenarios. Sometimes I could just use static HTML and no helpers (currently I canβt come up with such a script, but I'm sure it exists).
source share