如何使用HtmlHelper在asp.net-mvc中渲染htmlAttributes对象的属性?
- 内容介绍
- 文章标签
- 相关推荐
本文共计768个文字,预计阅读时间需要4分钟。
我正在构建一个编辑器模板,它将接受HTML属性对象。示例很简单。在主视图中,我有一个类似于@Html.EditorFor(x=> x.SomeProperty, New With { Attributes=New With { .class=form-control } })的表达式。在编辑器中。
本文共计768个文字,预计阅读时间需要4分钟。
我正在构建一个编辑器模板,它将接受HTML属性对象。示例很简单。在主视图中,我有一个类似于@Html.EditorFor(x=> x.SomeProperty, New With { Attributes=New With { .class=form-control } })的表达式。在编辑器中。

