page.ResolveUrl is not working in javascript
<p>in jquery code i used ResolveUrl("~/DynamicMenu.ashx") but when  i am showing value of variable where i store the result then i am getting this "ResolveUrl("~/DynamicMenu.ashx")"</p>

<p>here is 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> please help me to get the error and fix. thanks</p>
