0

I have an error when I display a decimal value. I use two languages ​​(English / French) and the problem only concerns the French language, with English language the value is displayed correctly and I can modify it.

Error message:

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+)?" jquery.min.js:3

// My Model

public Decimal? Tax_percent { get; set; }

// My View

<input type="number" name="Tax_percent" class="form-control@(!Model.Tenant.Tax_percent.HasValue ? "" : " edited")" value="@Model.Tenant.Tax_percent" step="0.01" min="0" max="100">

I tried to display it with "DisplayFor" and "EditorFor" without success.

Thanks

0 Answers0