title: How to separate @RenderBody() into two parts
body: <p>Im using ASP.NET Core 2.2. The problem that I have is I don't know where to use
  <code>@RenderBody()</code> in my <em>_Layout</em> page. This is representation of what I want to do:
  <a href="https://i.stack.imgur.com/Brtv7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Brtv7.png" alt="enter image description here"></a></p>
  
  <p>The green parts should come from <em>_Layout</em> and white parts coming from <em>HomePage.cshtml</em>. My <em>HomePage</em> consists of two parts  a slider and a list of content below it.This is what I tried, but it doesn't meet my need because i can't put slider in it.</p>
  
  <p>this is <strong>_Layout</strong></p>
  
  <pre><code>&lt;html&gt;
     &lt;body&gt;
         &lt;main&gt;
         &lt;header&gt;&lt;/header&gt;
         &lt;div class="left-col"&gt;
         &lt;div class="content"&gt;@RenderBody()&lt;/div&gt;
         &lt;div class="right-col"&gt;
         &lt;footer&gt;&lt;/footer&gt;
      &lt;/main&gt;
     &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>