title: String Formatting in C# for Strongly typed view
body: <p>I want to know how can I convert a strong typed view Price field in to 2 digit specifier like i have got a money field in my db which converts for instance 15 into 15.0000 , i juts want to display 15.00 in the view , below is the code:</p>
  
  <pre><code>&lt;%: Html.TextBoxFor(model =&gt;model.Price, new { maxlength = "5", style = "width:40px;" })%&gt;
  </code></pre>
  
  <p>I tried something like with no success:</p>
  
  <pre><code>&lt;%: Html.TextBoxFor(model =&gt; String.Format("{0:n}"model.Price), new { maxlength = "5", style = "width:40px;" })%&gt;
  </code></pre>