title: ASP.NET Fails to Load CSS and Javascript Files
body: <p>I'm experiencing a very peculiar issue with ASP.NET.
  I have a small website. I've written a simple MasterPage that is used across most of the site's pages. </p>
  
  <p>I want to include Bootstrap and jQuery's CSS and Javascript files. When I link then in my master page with URI pointing at remote location (see below), everything works fine:</p>
  
  <pre><code>&lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;asp:ContentPlaceHolder ID="Stylesheets" runat="server"&gt;
          &lt;link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"/&gt;
          &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;/asp:ContentPlaceHolder&gt;
      &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt;
      &lt;/asp:ContentPlaceHolder&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>For couple of reasons I want these JS and CSS files to be available locally, so I downloaded the relevant files to the server. But when I try to include these local files in the master page, they fail to load. </p>
  
  <p>I tried:</p>
  
  <ul>
  <li>Using absolute paths (i.e. <code>~/res/css/...</code>)</li>
  <li>Using <code>&lt;%= ResolveUrl("...") %&gt;</code></li>
  <li>Using <code>&lt;ScriptManager&gt;</code> - identical effect</li>
  <li>When trying to include these files in the same way in the <code>head</code> <code>contentPlaceHolder</code> in the content pages, the effect is the same.</li>
  </ul>
  
  <p>Example of non-working code:</p>
  
  <pre><code>&lt;asp:ContentPlaceHolder ID="Stylesheets" runat="server"&gt;
      &lt;link rel="stylesheet" href="~/App_LocalResources/css/bootstrap.min.css"/&gt;
      &lt;script src="~/App_LocalResources/js/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="~/App_LocalResources/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;/asp:ContentPlaceHolder&gt;
  </code></pre>
  
  <p>The result is the same whether I use the <code>ContentPlaceHolder</code> or not.</p>
  
  <p>If you could assist me in resolving this issue, I'd be genuinely awesome - thanks in advance.</p>