asp.net mvc parent child view with parent view updating children

后端 未结 2 588
暖寄归人
暖寄归人 2020-12-07 04:38

I am using a partial view to create a parent child view. What I would ideally like is the submit button on the parent view to save the child values.

I have the follo

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 04:50

    In your case you have two forms! Razor would generate this

    remove @using (Html.BeginForm()) {} from the partial view

提交回复
热议问题