Error in numeric field MVC Asp.Net

0

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?

    
asked by anonymous 09.10.2018 / 00:06

0 answers