If I have a decimal value in a field, and I am trying to display on a page, how do I format it (I would use string.format in web forms):
@Html.DisplayFor(Fun
dont do in DisplayFor... in the class set the atributte like this one.
DisplayFor
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:N2}")] public virtual decimal Valor { get; set; }