Html.Partial() skips the controller action

前端 未结 1 686
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-10 04:28

I am using @Html.Partial(\"Index\") to call upon an action called \"Index\" in a controller, which should then return me the \"Index\" view. Unfortunately, it looks like the

相关标签:
1条回答
  • 2020-12-10 04:42

    Html.Partial will only render a view. If you want to call an action you must use Html.Action, which will execute the action and return the view if any.

    0 讨论(0)
提交回复
热议问题