价值' 1.500,10'对价格无效

时间:2018-01-22 13:42:42

标签: javascript asp.net asp.net-mvc

Web.config

 <globalization uiCulture="en-US" culture="en-US" />

实体

  [DisplayName("Price")]
  public double Price { get; set; }

Create.cshtml

<div class="form-group">
        @Html.LabelFor(model => model.Price, htmlAttributes: new { @class = "control-label col-md-2" })
        <div class="col-md-10">
            @Html.EditorFor(model => model.Price, new { htmlAttributes = new { @class = "form-control" } })
            @Html.ValidationMessageFor(model => model.Price, "", new { @class = "text-danger" })
        </div>
    </div>

当我添加产品价格时出现此错误。我该如何解决?谢谢。

0 个答案:

没有答案