title: How to add a script in a partial view in MVC4?
body: <p>This is the code which I have in my partial view</p>
  
  <pre><code>@model Contoso.MvcApplication.Models.Exercises.AbsoluteArithmetic
  
  @using(Html.BeginForm())
  {
  &lt;div&gt;
      &lt;span style="width: 110px; float:left; text-align:center; font-size:2.5em;"&gt;@Model.Number1&lt;/span&gt;
      &lt;span style="width: 110px; float:left; text-align:center; font-size:2.5em;"&gt;+&lt;/span&gt;
      &lt;span style="width: 110px; float:left; text-align:center; font-size:2.5em;"&gt;@Model.Number2&lt;/span&gt;
      &lt;span style="width: 110px; float:left; text-align:center; font-size:2.5em;"&gt;=&lt;/span&gt;
      &lt;span&gt;
              @Html.EditorFor(model =&gt; model.Result)
              @Html.ValidationMessageFor(model =&gt; model.Result)
      &lt;/span&gt;
  &lt;/div&gt;
  }
  
  @section Scripts {
      @Scripts.Render("~/bundles/jqueryval")
  }
  </code></pre>
  
  <p>Please note at the bottom of my code, I've got a <code>@section</code>, and I realized that it's not running if I set a breakpoint there. If I move that line in the _Layout.cshtml it works well, but that's not the idea.</p>
  
  <p>How can I tell to MVC4 in a partial razor view that I want to add that library?</p>