title: Page.ResolveUrl is not working in javascript
body: <p>In jQuery code I'm using <code>ResolveUrl("~/DynamicMenu.ashx")</code>.</p>
  
  <p>But it just returns the exact string:</p>
  
  <blockquote>
    <p><code>"ResolveUrl("~/DynamicMenu.ashx")"</code></p>
  </blockquote>
  
  <p>Here is a bit of code:</p>
  
  <pre><code>pageIndex = pageIndex + 1;
  var CountryCode = getCookie("SetCountry");
  var urlToHandler = '&lt;%= ResolveUrl("~/DynamicMenu.ashx") %&gt;'; 
  urlToHandler = urlToHandler + CountryCode + "&amp;PageIndex=" + pageIndex;
  alert(urlToHandler);
  </code></pre>
  
  <p>What is wrong in my code for <strong>ResolveUrl()</strong>?</p>