title: @RenderSection at Razor pages
body: <p>I try to use the @RenderSection in my website which built with Razor script. I got error when use it with the .cshtml files. It also didn't appear in the IntelliSense at VS. </p>
  
  <p>Now, I just realized that if I remove the @page from the .cshtml file then the error gone and also the IntelliSense offer me the @RenderSection</p>
  
  <p>And my question is: why? </p>
  
  <p>It says in the Microsoft documentation / tutorial that with the new ASP.NET Core Razor scripts: </p>
  
  <p>"@page must be the first Razor directive on a page. @page affects the behavior of other Razor constructs."</p>
  
  <p>So I'm a little bit confused. What's the right way to include html (partial views - like main menu, etc.) in a .cshtml file with the new Razor Pages in ASP.NET Core ?</p>
  
  <p>Thanks.</p>