Html.LabelFor Specified Text

后端 未结 7 1584
渐次进展
渐次进展 2020-12-24 04:28

Anyone got any idea on how to specify text when using Html.LabelFor(c=>c.MyField). It\'s just MyField might not be an appropriate name to displ

7条回答
  •  感动是毒
    2020-12-24 05:10

    There are 5 overloads. Several offer second parameter of "string labelText", which you would set to "The Super Fantastic Field".

提交回复
热议问题