Html.EditorFor retrieve null in decimals ASP.NET M

2019-09-14 20:39发布

I have a problem when retrieving a decimal data in my view. It occurs using Google Chrome and M.Edge, but with I.Explorer and Firefox is not happening.

This is my model:

public Nullable<decimal> TA_RATE_CARD_COST { get; set; }

This is the view:

@Html.EditorFor(m => m.TA_RATE_CARD_COST, "DecimalNullable")

When the value stored in the database is for example 500,54 the view does not retrieve the value, the EditorFor is empty.

enter image description here

If the value stored is 500 the data is retrieved correctly, like I show you.

enter image description here

Why is this happening? I remember with a old version of Chrome this works correctly. I'd appreciate any help. Thanks in advance.

0条回答
登录 后发表回答