How to do number formatting in mvc3 view
I want to get the output TotalAmount ( for example: 1000000000 as
1,000,000,000 ) but my code throws this error:
[ Templates can be used only with field access, property access,
single-dimension array index, or single-parameter custom indexer
expressions. ].
Please give me solutions on my below context.
@Html.DisplayFor(modelItem => item.TotalAmount.ToString("#,##0.00"))
No comments:
Post a Comment