Reputation: 4605
This has been bothering me since the first time I saw these methods in the view and I couldn't find any answer on the net.
So if I put this code inside my view
<div id="categories">
@{ Html.RenderAction("Menu", "Nav"); }
</div>
Does that mean that we are making another call to the server after the view is rendered ?
And If not, how does it work ?
Thanks.
Upvotes: 1
Views: 287
Reputation: 17407
No. The view is being generated in it's entirety within the same request. It just means you are rendering the result of an action you've defined in one of your controllers into the current view.
Upvotes: 4