2011-11-26 101 views
1

我必须产生以下的输出:ASP.NET MVC 3和Html.LabelFor

<label for="FirstName">First name <span>*</span></label> 

我如何能做到用@Html.LabelFor帮手?我不知道如何在label元素中包含<span>元素。

任何帮助将不胜感激。

+0

看看这个帖子有你想要什么http://stackoverflow.com/questions/5196290/我怎么能重写-html-labelfor-template –

+0

@COLDTOLD,那正是我需要的! –

回答