title: Asp.Net Mvc Url.Action in external js file?
body: <p>In external js file, I cant use </p>
  
  <pre><code>url = "@Url.Action("Action", "Controller")" 
  //url output : @Url.Action("Action", "Controller")
  //I get IllegalPath Name error.
  </code></pre>
  
  <p>When I write like this:</p>
  
  <pre><code>url = "/Controller/Action"
  </code></pre>
  
  <p>And If project is under a sub folder, then scripts do not work. I need something like this as relative Url:</p>
  
  <pre><code>url = "~/Controller/Action"
  </code></pre>
  
  <p>How can ı do this? Thanks.</p>