How to get a datepicker for Html.Editorfor

后端 未结 3 1078
臣服心动
臣服心动 2021-02-08 13:14

On my MVC3 razor page I have a date field

@Html.EditorFor(model => model.Member.Dob)

Given below is the code I am trying to get a datepi

3条回答
  •  渐次进展
    2021-02-08 14:03

    @Html.LabelFor(model => model.Birthdate, "Birthday", new { @class = "control-label col-md-2" })
    @Html.Kendo().DatePickerFor(model => model.Birthdate) @Html.ValidationMessageFor(model => model.Birthdate)

提交回复
热议问题