I am using @Html.Action() to render a child action in my view.
The _ViewStart.cshtml file indicates that all views should use a specific layout, for example:
@{ Layout = "~/Views/Shared/_Layout.cshtml"; }
The problem is that the layout also applies to my child action, so the last page ends with two headers and two footers. How to prevent this?
layout asp.net-mvc asp.net-mvc-3
David
source share