I am having problems with Asp.NET MVC when using numeric field I am having error. Razor is like this
@Html.EditorFor(model => model.AliqIpi, new
{
htmlAttributes = new {
@class = "form-control", @style = "text-align: right;", @type = "number", @min = "0", @step = "0.01", @value = "0"
}
})
@Html.ValidationMessageFor(model => model.AliqIpi, "", new { @class = "text-danger" })
and when editing the registry when I move the values to the grid does not show the numeric values and of this error
The specified value "0.00" is not a valid number. The value must match to the following regular expression: \ d + \ d + \ d \ d +) ([eE] [- +]? \ d +)?
Has anyone gone through this?