Sunday, June 1, 2008
ASP.NET ResolveUrl vs ResolveClientUrl
ASP.NET contains two methods in the Control class that can be used to resolve the "~" to the application root. The ResolveUrl method returns the path relative to the application root, whereas the ResolveClientUrl method returns the path relative to the current folder. Either works fine in most cases.