Formatting currency using display template in MVC
问题 I found this post about Display and EditorTemplates for MVC: http://www.growingwiththeweb.com/2012/12/aspnet-mvc-display-and-editor-templates.html It creates a display template to easily display a decimal formatted with currency sign. The model used in the example: public class TestModel { public decimal Money { get; set; } } The display template: Views/Shared/DisplayTemplates/decimal.cshtml: @model decimal @{ IFormatProvider formatProvider = new System.Globalization.CultureInfo("en-US");