I know that within a view I can render an action from the same controller using Html.RenderPartial. However, I need to render the output from an action under a different controller. What is the best way to do this? I would prefer to do this directly within the view, rather than doing it in the controller and saving the output to a ViewData variable.
Share
The best thing to do is use
Html.RenderActionwhich needs a references to the ‘Futures’ assemblyMicrosoft.Web.Mvcwhich there’s a question about how to get it.You will also need to add the namespace in your web.config in order to user it in your view: