0
kicks
Programmatically resolving ~ URL's to the Virtual Root
The base WebControl class exposes a method named ResolveURL(). This method accepts a url such as "~/Customers/Profile.aspx" and returns the real url, starting from your site's virtual root.