<p>Is there someway to have a part of the page that renders like a little sub-page, like components?</p>

<p>For example, if I have a shopping cart on all my pages?</p>

[{'answer_id': 73917, 'author': 'DevelopingChris', 'author_id': 1220, 'author_profile': 'https://Stackoverflow.com/users/1220', 'pm_score': 3, 'selected': False, 'text': '<p>Using preview 5, Html.RenderPartial is your man, you can render sub-controls, and pass them your viewdata, or an arbitrary model, and new viewdata combo.</p>\n'}, {'answer_id': 73973, 'author': 'DevelopingChris', 'author_id': 1220, 'author_profile': 'https://Stackoverflow.com/users/1220', 'pm_score': 4, 'selected': True, 'text': '<p>If you want it to render another controllers action, as a component, to get encapsulation, you use.</p>\n\n<p>Html.RenderAction</p>\n\n<p>uses routedata to get you there, has its own viewdata and kind of mini life cycle</p>\n'}, {'answer_id': 74280, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>You can create an ActionFilter that modifies the view data. That way, you can decorate every action that returns the partial with the action filter. Take a look at my post:</p>\n\n<p><a href="http://stephenwalther.com/blog/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx" rel="nofollow noreferrer">http://stephenwalther.com/blog/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx</a></p>\n'}, {'answer_id': 78286, 'author': 'Matt Hinze', 'author_id': 2676, 'author_profile': 'https://Stackoverflow.com/users/2676', 'pm_score': 1, 'selected': False, 'text': '<p>You are looking for <a href="http://groups.google.com/group/mvccontrib-discuss/browse_thread/thread/b050e21fe322c08a" rel="nofollow noreferrer">subcontrollers</a>.  This implementation is the best way to do what you are talking about.</p>\n\n<p>Edit: I just posted about this here: <a href="http://mhinze.com/subcontrollers-in-aspnet-mvc/" rel="nofollow noreferrer">http://mhinze.com/subcontrollers-in-aspnet-mvc/</a></p>\n'}]
['https://Stackoverflow.com/questions/73902', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/11559/']