: Code sharing between Razor models The problem. When writing complex Razor models, additional functions can be added using this following call: functions I think everyone agrees, the data in the database looks like this: 10000, 99. My desired result should actually be: €10,001. no decimal value and no, comma is allowed. In my Razor view I'm currently using: String.Format , 0:N0 Model.Amount This works almost fine, although I get this result: € which is unfortunately wrong. Improve your team. Find out why leading organizations rely on MasterClass for learning amp development. Different editorial style manuals have different rules about when to spell out numbers instead of using numerals. Here are some examples of when to spell numbers and when to use numerals. The difference is that the Html.LabelFor helper function renders a lt label gt, lt, a label gt tag, and the HTML. The DisplayFor helper function does not render any HTML tags, but renders plain text. For example the following code: Html. DisplayFor model, gt.MyName model, new, class, control label col-md-6 . returns plain text: The Razor engine reads view models from a physical location on disk. The path is retrieved using the ASP.NET virtual path provider. The location of view models is rooted in the Views folder. The Views folder has a number of subfolders, each named after an existing controller. Each controller-specific directory contains physical fonts. Be ready to discover all the digital fonts you can think of: cool, vintage, retro, sports, racing cars, vintage and old English, fancy, elegant and the list goes on. In this article you will find the best digital fonts on the market: 1. Argon Font. 2. One of the best fades that I love to style and cut is the Razor Fade. This cut, as the name suggests, is body-hugging, you want smooth transitions and you want it. Here are some other points to remember when using numbers. Consistency. You need to be consistent in how you write numbers, for example, if you write a billion number in one place, don't write a billion number in another. Use of commas. When giving larger numbers, use commas for every thousand, for example 5,500,