我想使用Html.EditorFor中的占位符属性,所以我刚刚在第一个答案: Html5 Placeholders with .NET MVC 3 Razor EditorFor extension? 但在最后一部分,我没有EditorTemplates文件夹,所以我创建它,当我尝试创建string.cshtml视图,我不能因为名称“字符串”是保留的,所以我选择了stringg.cshtml而不是
我需要在EditorFor字段上使用datepicker. 我的视图代码是: <div class="editor-label">
@Html.Label("birthDate","birthDate")
</div>
<div class="editor-field">
@Html.EditorFor(model => model.birthDate, new { @class
可以在不使用 JavaScript的情况下在页面加载时将焦点放在以下代码上吗? <div class="col-md-10">
@Html.EditorFor(model => model.Description)
@Html.ValidationMessageFor(model => model.Description)