Hi Friends,
I have put it the following code for the initial investment
Model code
[DataType(DataType.Currency)]
[Required(ErrorMessage = "Initial investment is required")]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:C}")]
[Display(Name = "Initial Investment")]
[RegularExpression("^[1-9]+[0-9]*$", ErrorMessage = "Initial investment is numeric")]
public string InitialInvestment { get; set; }
Aspx code
<%: Html.TextBoxFor(InitialInvestment => Model.InitialInvestment., new { @class = "textbox", style = "width:105px", maxlength = "15"})%>
but this is not displaying in currency format
Please help me to solve the issue
Thanks