title: How to access javascript variable within @URL.Action()
body: <p>How can I access JavaScript value inside <code>@URL.Action()</code>?
  something like: </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function name(myjavascriptID)
  {
       jQuery("#list_d").jqGrid('setGridParam', { url: '@URL.Action("download file", "download", new { id = &lt;myjavascriptID&gt; })', page: 1 });
  
  }
  &lt;/script&gt;
  </code></pre>