title: Injecting content into specific sections from a partial view ASP.NET MVC 3 with Razor View Engine
body: <p>I have this section defined in my <code>_Layout.cshtml</code></p>
  
  <pre><code>@RenderSection("Scripts", false)
  </code></pre>
  
  <p>I can easily use it from a view: </p>
  
  <pre><code>@section Scripts { 
      @*Stuff comes here*@
  }
  </code></pre>
  
  <p>What I'm struggling with is how to get some content injected inside this section from a partial view.</p>
  
  <p>Let's assume this is my view page: </p>
  
  <pre><code>@section Scripts { 
  
      &lt;script&gt;
          //code comes here
      &lt;/script&gt;
  }
  
  &lt;div&gt;
      poo bar poo
  &lt;/div&gt;
  
  &lt;div&gt;
    @Html.Partial("_myPartial")
  &lt;/div&gt;
  </code></pre>
  
  <p>I need to inject some content inside the <code>Scripts</code> section from <code>_myPartial</code> partial view.</p>
  
  <p>How can I do this?</p>