title: @Html.TextBoxFor Validation
body: <p>I have a requirement like <code>@Html.TextBoxFor</code> to show the currency in a comma seperated format, without accepting negative values and without special characters. At the same time when the currency is not available, I'm changing the value of this TextBoxFor to 'not available'. How this can be achieved in the View, using decimal validation and supporting text input?</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.SourceCurrencyValue, new { @Value=String.Format("{ViewBag.decimalplace}",Model.SourceCurrencyValue) })
  </code></pre>
  
  <p><code>ViewBag.decimalplace</code> should be the decimal position like 2 or 3.</p>