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(Function(modelItem) String.Format("{0:n0}",currentItem.QualityM1))
That errors in VS2010 with the messae: Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.