我试图设置一个字段id如下:
@Html.EditorFor(x => x.Order,new { id = string.Format("Order_{0}",Model.Row) })
但是这会导致以下情况,并且似乎我的ID不被设置:
<input type="text" value="334" name="item.Order" id="item_Order" class="text-Box single-line">
有人有什么想法我做错什么我检查了EditorFor的允许格式,并在google上查看了示例,但我看不到任何符合我需要的内容。
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。