1

I have to produce the following output:

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

How can I do that using @Html.LabelFor helper? I don't know how to include <span> element inside label element.

Any help would be greatly appreciated.

šljaker
  • 7,294
  • 14
  • 46
  • 80
  • take a look at this post it has what you want http://stackoverflow.com/questions/5196290/how-can-i-override-the-html-labelfor-template – COLD TOLD Nov 26 '11 at 20:54

1 Answers1

0

You need to write your custom LabelFor

Please check this answer

Asp.Net MVC 2 LabelFor Custom Text

Community
  • 1
  • 1
adyusuf
  • 806
  • 1
  • 11
  • 27