具体什么控件用哪种方法.我也没总结.大家可以找找补充补充..不行就几种替换一下.
简单列出常用的几种:
@Html.TextAreaFor(model => model.Description, new { @class = "form-control", @rows = "3" })
@Html.LabelFor(model => model.PassWord, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
@Html.EditorFor(model => model.IsDisabled, new { htmlAttributes = new { @class = "form-control" } })
本文为博主原创文章,欢迎转载,但转载须注在明显位置注明【博客地址】和【原文地址】,否则将追究法律责任。http://www.cnblogs.com/cxd1008