title: Using external javascript files with asp.net MVC
body: <p>I have some javascript inwhich I am using such helpers as </p>
  
  <pre><code>var url = &lt;%=ResolveUrl("~/controller/action") %&gt; 
  </code></pre>
  
  <p>When the javascript is embeded in the .aspx page using the</p>
  
  <p><code>&lt;script&gt;</code> tag everything works fine</p>
  
  <p>When I move it out to an external file those scripts that have the helper methods do not work.</p>
  
  <p>Other scripts do just the ones with the </p>
  
  <pre><code>var url = &lt;%=ResolveUrl("~/controller/action") %&gt;
  </code></pre>
  
  <p>do not. </p>
  
  <p>Are these not possible to use in external javascript files??</p>
  
  <p>I would like to get all of my javascript out of the aspx files if I can.</p>
  
  <p>thanks!</p>