Resolve URLs for ASP.NET in jQuery?
<p>I would like to use "<code>~/</code>" and resolve on the client site.</p>

<p>For example, I would want to do this:</p>

<pre><code>&lt;a href="~/page.aspx"&gt;website link&lt;/a&gt;
&lt;img src="~/page.aspx" /&gt;
</code></pre>

<p>I would have my base URLs in ASP.NET like this:</p>

<pre><code>&lt;script type="text/javascript"&gt;
        var baseUrl = "&lt;%= ResolveUrl("~/") %&gt;";
&lt;/script&gt;
</code></pre>

<p>Would I need a jQuery plugin for this or can this be a achieved with a chained command?</p>
