In this recipe, we will take a look at how we can use the
RenderAction method to get a partial view. We will do this by creating a shared partial view that is capable of rendering any action in which we might be interested. We will then create an
extension method, which is capable of calling our helper view and converting that into a string. This string can then be cached. Best of all, this particular approach allows us to use the appropriate controller to take care of the requirements for each of the views being rendered.