title: How to add only those script and css files necessary to views with partial views
body: <p>There are some views that I create which use the _layout partial view, but I don't want to include every single css or script bundle.   What is the best way to include the script or css file in the view?  </p>
  
  <pre><code>&lt;head&gt;
   &lt;link href="Content/style.css" .../&gt;
   &lt;script src="Scripts/myscript.js" ...&gt;&lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>How can I get the view to render something similar to this?  There is no head tag in a View that uses a partial view.</p>