I have this on my view:

@Html.TextBoxFor(a => a.ExpenseSummaryList[k].AMOUNT_CZ,"{0:N}")`

and in model

[DisplayFormat(DataFormatString = "{0:N}", ApplyFormatInEditMode = true)]
public double? AMOUNT_CZ { get; set; }

When I submit If AMOUNT_CZ is more than 999.00 like 1,850.00 . AMOUNT_CZ will be null.Because of commas(,). My question is why it happen and is there other format that display same as format "{0:N}" but wont return commas(,) in model.

Related posts

Recent Viewed