UpdateModel prefix - ASP.NET MVC

后端 未结 4 1257
悲哀的现实
悲哀的现实 2020-12-29 12:23

I\'m having trouble with TryUpdateModel(). My form fields are named with a prefix but I am using - as my separator and not the default dot.

<         


        
4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 13:16

    There is a reason not to use . as ID/Name in HTML bcs it is not standard. For example, the will break if there is a dot in target.

提交回复
热议问题