2011-11-26 92 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,那正是我需要的! –

回答