title: Razor View Without Layout
body: <p>How come when I have <code>Layout = null;</code> in my view - it still pulls in the default layout?!</p>
  
  <p>Is there some trick to stop it doing that?</p>
  
  <p>Here is my view without layout:</p>
  
  <pre><code>@{
      Layout = "";
  }
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Index&lt;/title&gt;
      @{Html.RenderAction("Head", "Header");}
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;
          Home
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is the rendered output!!</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Index&lt;/title&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;link href="/Content/Site.css" rel="stylesheet" type="text/css" /&gt;
      &lt;script src="/Scripts/jquery-1.5.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="/Scripts/modernizr-1.7.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      header
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;
          Home
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>