Does Html.RenderAction create a separate request?
-
28-03-2021 - |
質問
I'm not seeing any extra requests in Fiddler when I have a view that makes RenderAction
calls. Is it because it isn't a separate web request, per say, it's all done internally when the controller is rendering its view?
解決
RenderAction
simply invokes the given action on a controller. The result of that action will be written to the current page that's being requested. It does not force the client to make additional requests.
For more info, see Phil Haack's post about Html.RenderAction and Html.Action.
所属していません StackOverflow