建文件~/Views/Shared/EditorTemplates/string.cshtml
输入
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, new { placeholder = ViewData.ModelMetadata.PropertyName})
使用
@Html.EditorFor(m=>m.Name)
*****************************************************************************
签名档: http://feiyun0112.cnblogs.com/
相关文章: