I found an old solution to my problem but it's seem they doesn't work in ASP.NET MVC 5. I want a view (automatically generated) from my ASP.NET MVC website that accepts a price with a comma.
My model class is
public class Alert
{
public int AlertId { get; set; }
[ForeignKey("CieId")]
public Cie AlertCie { get; set; }
public int CieId { get; set; }
[ForeignKey("PortfolioId")]
[Display(Name = "Threshold Price")]
[DataType(DataType.Currency)]
public decimal Price { get; set; }
}
The view error message is the following:
I run my site web with this web.config
entry :
culture="fr-CA" uiCulture="fr-CA"
The issue is at the view level, I'm unable to create a new entry. I think the JS script blocks it.