how to identify rootpath for application server?
<p>In my .net web application I create a blank solution and add website and class library into it. All the website pages are in UI folder, so when I use</p>

<pre><code>'&lt;%=ResolveUrl("~") %&gt;'
</code></pre>

<p>in javascript, it returns '/UI/', but in application server I set website root at UI folder, so '&lt;%=ResolveUrl("~") %>' returns '/'. The problem here is, when I call AjaxPages under UI/AjaxPages/ folder it only works at local, it does not work at application server. The code I use is</p>

<pre><code>var root='&lt;%=ResolveUrl("~") %&gt;';
$.post(root+"AjaxPages/UserStatus.aspx",....)...
</code></pre>

<p>Even I use </p>

<pre><code>var path='&lt;%=ResolveClientUrl("~/AjaxPages/UserStatus.aspx") %&gt;';
$.post(path,....)
</code></pre>

<p>It still does not work in application server, but works local.
I really have no idea what's wrong here. Thank you for any tips.</p>
