title: Using ResolveClientUrl() in external JavaScript files
body: <p>I found that ResolveClientUrl() works as expected when JavaScript is embedded in ASPX page, however it doesn't resolve anything when external script is referenced in ASPX like this:</p>
  
  <pre><code>&lt;script src="../Javascript/sessionManagement.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Is there a way to make ResolveClientUrl() work in external JS files? I was expected that it would because this file IS included in ASPX page but this is not the case.</p>
  
  <p>I found a rather ugly workaround - to include external JS file in ASPX page like this:</p>
  
  <pre><code>&lt;script type="text/javascript" language="jscript"&gt;
      &lt;!--#include file="../Javascript/sessionManagement.js"--&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>It works (ResolveClientUrl() actually resolves path) but I've never seen external JS files referenced like that and am not sure this is the way to go.</p>