Các bác có cách nào để gán được ngày tháng thời gian hiện tại mặc định vào textbox dưới không?
em làm như sau mà nó không hiện ra:Code:<div class="editor-label"> @Html.LabelFor(model => model.CreateDate) </div> <div class="editor-field"> @Html.EditorFor(model => model.CreateDate) @Html.ValidationMessageFor(model => model.CreateDate) </div>
Code:@Html.EditorFor(model => model.CreateDate, new {Value=DateTime.Now})
Bookmarks