In my form I have a field to edit/create a decimal value.
@Html.TextBoxFor(m => m.prijs)
In my model, this property is declared as:
[Column(TypeName = "decimal(18,2)")]
[Display(Name = "Prijs")]
public decimal? prijs { get; set; }
Whatever I put in there, 12.5 or 12,5 or even 12.00 or 12,00 does not get accepted. Only "12" passes OK When I input in the DB manually "12,5" it saves without problems.
When I view the data in another view, I see the decimal value correctly.
What's happening here?