Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
May 01, 2012 05:11 PM|LINK
Render Partial and Render Action are very different in their behavior with performance implications to each. Render Partial is just including a view, there is no controller processing that happens and it's very similar to server side includes (albeit more
powerful). RenderAction actually invokes the entire asp.net mvc runtime, meaning routnig, controller action methods and finally the view. RenderAction works well for some situations but overusing it can result in a performance hit.
@Html.Partial will not hit the controller (hence the breakpoint not firing). It simply loads the view directly and displays it inline. This is good for templating situations, but if you need to pull data or do some processing server side, then you need to
It sounds like your view is getting html encoded, hence the html showing up in the browser end view. What does your action method look like ? The one being called from RenderAction? Can you post that code? It should just be returning a view as you normally