私はこの作成ビューを持っていて、コードを生成しました....
<div class="editor-label">
@Html.LabelFor(model => model.EmployeeId, "Employee")
</div>
<div class="editor-field">
@Html.DropDownList("EmployeeId", String.Empty)
@Html.ValidationMessageFor(model => model.EmployeeId)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Date,"Date")
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Date)
@Html.ValidationMessageFor(model => model.Date)
</div>
それを実行すると、入力用のテキストボックスが自動的に作成されました...私ができないのは、日付のテキストボックスを強制的に日付ピッカーにすることです...
私は単純な入力でそれを行うことができます、
<input class="datepicker">
私はすでに日付ピッカー用のスクリプトを持っています..日付の入力クラスを日付ピッカーにする必要があるだけです...