如何让我的@ Html.ValidationMessageFor使用整数值

时间:2015-01-10 17:22:27

标签: vb.net model-view-controller integer

如何将此更改为使用整数/ int64值?

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

凭借我所拥有的一点点知识,我认为我需要将“”更改为可以捕获整数值的东西?

1 个答案:

答案 0 :(得分:-1)

经过测试后我发现我忘了在我的创作和放大器上添加prijs编辑功能

 Function Edit(<Bind(Include:="Id,Soort,TransactieType,Beschrijving,Locatie,prijs")