title: Using Render Section script on MVC
body: <p>I create two Render Section on <code>_Layout.cshtml</code> bellow:</p>
  
  <pre><code>@RenderSection("scripts", required: false)
  @RenderSection("scriptpartial", required: false)
  </code></pre>
  
  <p>Page Index.cshtml using reference from <code>_Layout.cshtml</code>, on page <code>Index.cshtml</code> I use define code: </p>
  
  <pre><code>@section scripts {
      &lt;script type="text/javascript"&gt;
          $(document).ready(function () {
              alert("This is code 1");
          });
      &lt;/script&gt;
  }
  </code></pre>
  
  <p>Page <code>Index.cshtml</code> contain one partial <code>_Other.cshtml</code>, in file <code>_Other.cshtml</code> I define code:</p>
  
  <pre><code>@section scriptpartial {
      &lt;script type="text/javascript"&gt;
          $(document).ready(function () {
              alert("This is code 2");
          });
      &lt;/script&gt;
  }
  </code></pre>
  
  <p>When I running application, only "This is code 1" executed, I do not know error this</p>