Asp.net core model doesn't bind from form

后端 未结 10 886
没有蜡笔的小新
没有蜡笔的小新 2021-02-02 13:54

I catch post request from 3rd-side static page (generated by Adobe Muse) and handle it with MVC action.

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-02 14:22

    This issue can also happen if one or more of your properties in the request model fail to bind into an acceptable on the request model.

    In my case, I was supposed to pass a List type to a property, but accidentally passed a string. This resulted in the entire request model becoming null

提交回复
热议问题