Question: I'm using `@Html.Action()` to render a child action within my view.

The `_ViewStart.cshtml` file specifies that all views should use a particular layout like this:

```
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

```

Problem is, that layout is getting applied to my child action too, so the final page ends up with two headers and two footers. How do I prevent this?

Answer: 
2 possibilities:

1. `return PartialView()` from the corresponding controller action instead of a `return View()`
2. Blank out the layout in the view itself

```
@{
    Layout = null;
}

```
Seems you want to use `ChildActionOnly` and don't want to pass the model from view then you can not user PartialView.

If it is so, you need to remove the layout manually

```
@{
    Layout = "";
}

```