Model is null while submitting the form in partial view in MVC5

后端 未结 2 1466
醉梦人生
醉梦人生 2021-01-25 16:51

I am just trying to learn MVC and facing some issues.When I am submitting my partial view, I am getting null in Model Blog inside Create Method.

What I

2条回答
  •  一个人的身影
    2021-01-25 17:46

    Maybe this answer relates to your question: Is there a reason why the default modelbinder doesn't bind to fields?

    Pay attention at DefaultModelBinder, ModelBinderContext, ModelMetadata. This explains it all.

提交回复
热议问题