Possible Duplicate:
ASP.NET MVC 3 controller action for partial view
I have a page that contains a partial view.
This partial view has a custom model and I thought about replacing it with a regular action+view calling Html.RenderAction so I can control its model retrieval, styles and scripts separately.
The problem is I want to exclude the outer layout page from that view.
Is it possible? Is this efficient? Any better alternatives?
I think I’ve found my answer here.
In short, instead of returning
Viewin that action,PartialViewshould be returned.