I am trying the following RegEx
to validate the decimal value like
[RegularExpression("^(?:\\d{1,100000000}(?:\\.\\d{0,6})?)?$")]
[Range(double.MinValue,double.MaxValue)]
public decimal Amount { get; set; }
rendering in the view like
<div class="editor-field">
<%:Html.TextBoxFor(x=>x.Amount)%>
<%:Html.ValidationMessageFor(x=>x.Amount) %>
</div>
the problem is it puts a 0
in the textbox by default, please guide me find out the problem, also if there is a better way to validate the decimal field please do mention...