1
我必须产生以下的输出:ASP.NET MVC 3和Html.LabelFor
<label for="FirstName">First name <span>*</span></label>
我如何能做到用@Html.LabelFor
帮手?我不知道如何在label
元素中包含<span>
元素。
任何帮助将不胜感激。
我必须产生以下的输出:ASP.NET MVC 3和Html.LabelFor
<label for="FirstName">First name <span>*</span></label>
我如何能做到用@Html.LabelFor
帮手?我不知道如何在label
元素中包含<span>
元素。
任何帮助将不胜感激。
看看这个帖子有你想要什么http://stackoverflow.com/questions/5196290/我怎么能重写-html-labelfor-template –
@COLDTOLD,那正是我需要的! –