set “id” and “name” for @HtmlEditorFor?

后端 未结 3 1338
[愿得一人]
[愿得一人] 2020-12-16 17:49

I\'m trying to set id and name for @Html.EditorFor, but this isn\'t working:

@H         


        
3条回答
  •  借酒劲吻你
    2020-12-16 17:57

    EditorFor allows to set name and id property (tested with .Net 4.6.1) @Html.EditorFor(m => m.value, null, "Testname1") will generate

提交回复
热议问题