May242008
Published by Guillermo at 11:45 PM under Development
You have (at least) two ways to achieve this:
public class URLHelper
{
public static string GetAbsoluteURL(string relativeURLPath)
return VirtualPathUtility.ToAbsolute(relativeURLPath);
}
// A Property of your control //
...
public string AbsoluteURL
get
return this.ResolveUrl();
Tags: c#, asp.net, quick tricks
E-mail | Permalink | Trackback | Post RSS 0 Responses
Response by on 1/7/2009 5:44:17 AM
Guillermo Salas You can also find me on: twitter friendfeed plurk tumblr pownce E-mail me
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.