title: Partial views on _Layout not rendered when Actionfilter invoked
body: <p>The <code>Alert</code> view that is rendered contains the layout</p>
  
  <pre><code>@model myModel
  
  @{
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  </code></pre>
  
  <p>While using an action filter like so</p>
  
  <pre><code> public class CheckThisAttribute : ActionFilterAttribute
      {
          public override void OnActionExecuting(ActionExecutingContext filterContext)
          {
              filterContext.Result = new ViewResult
              {
                  ViewName = "Alert",
                  ViewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelBinding.ModelStateDictionary())
                  {
                      Model = new myModel()
                  }
              };
  
              base.OnActionExecuting(filterContext);
          }
      }
  </code></pre>
  
  <p><strike>the <code>_Layout</code> is not reendered at all. (Only the view is rendered)
  Why is this so?</strike>
  Should i change <code>ViewResult</code> to something else, or 
  include also the <code>_Layout</code> in the action filter somehow?</p>
  
  <p><strike><strong>Update</strong>: After inspecting the rendered page, i noticed that the page contains all info, including the _Layout, but chrome denies to render it</strike></p>
  
  <p><strong>Update</strong>: The Layout contains other partial views</p>
  
  <pre><code>&lt;div class="page-wrapper"&gt;
      &lt;div class="page-inner"&gt;
          &lt;partial name="_LeftPanel" /&gt;
          &lt;div class="page-content-wrapper"&gt;
              &lt;partial name="_PageHeader" /&gt;
              &lt;main id="js-page-content" role="main" class="page-content"&gt;
                  @RenderBody()
              &lt;/main&gt;
              &lt;partial name="_PageContentOverlay" /&gt;
              &lt;partial name="_PageFooter" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>which do not seem to load at all, and that is the reason why the output is only </p>
  
  <pre><code>&lt;div class="page-wrapper"&gt;
          &lt;div class="page-inner"&gt;
              &lt;div class="page-content-wrapper"&gt;
                  &lt;main id="js-page-content" role="main" class="page-content"&gt;
                     &lt;div class="alert alert-warning" role="alert"&gt;
                       &lt;strong&gt;Alert!&lt;/strong&gt; This is what only is displayed
                     &lt;/div&gt;
                  &lt;/main&gt;
                  &lt;div class="page-content-overlay" data-action="toggle" data-class="mobile-nav-on"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>