ASP.NET MVC 4 override emitted html name and id

前端 未结 4 637
渐次进展
渐次进展 2020-12-15 02:46

I\'m trying to change the emitted name of the html input created by @Html.HiddenFor.

The code I\'m using this:

@Html.HiddenFor(e => e         


        
4条回答
  •  难免孤独
    2020-12-15 03:00

    never worked for me (aspnet.core)

    I used plain

    
    

    and worked like a charm. No need for HtmlHelper HiddenForModel.

提交回复
热议问题