Html.LabelFor
reads the metadata from a model property and displays the name of the property.
You can configure the displayed name with the Display
or DisplayName
attributes.
Your model has no properties, so LabelFor
is completely useless in your example.
What do you want to achieve? When you want to render a label with the value of the string just create a label:
<label>@names</label>