title: How to add css/script only to a Partial view?
body: <p>I need to load css and scripts only to a specific Partial view but at this moment this link and scripts are loaded in all views. The structure that I have is the main view embedded a _Layout and Header, and the Header embedded a partial view called SearchHeader.</p>
  
  <pre><code>_Layout -&gt; View &lt;- Header &lt;- SearchHeader
  </code></pre>
  
  <p>Header:</p>
  
  <pre><code>&lt;li id="_Header_Menu"&gt;
      &lt;div&gt;
           &lt;ul class="sf-menu"&gt;
               &lt;li&gt;
                   @Html.Partial("../Home/SearchHeader")
               &lt;/li&gt;
           &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>SearchHeader:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
        &lt;link href="@Url.Content("~/Content/fonts")" rel="stylesheet" type="text/css" /&gt;
        &lt;link href="@Url.Content("../../Content/GlyphIcons.css")" rel="stylesheet" type="text/css" /&gt;
        &lt;link href="@Url.Content("../../Content/bootstrap.css")" rel="stylesheet" type="text/css" /&gt;
        &lt;link href="@Url.Content("../../Content/bootstrap.min.css")" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;input type="text" name="contentToSearch" class="form-control" id="contentToSearch" placeholder="Search"&gt;    
  
  &lt;script src="@Url.Content("../../Scripts/boostrap.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("../../Scripts/jquery.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The css and scripts load correctly but there are applied to the <code>Header view</code>. How to only apply to the <code>SearchHeader view</code> ?</p>