I\'m trying to write a html helper extension that outputs an image tag. I need to access (within C# code) something like Razor\'s @Url.Content() helper to get the proper URL
Use the following to mimic Url.Content in code.
VirtualPathUtility.ToAbsolute("~/url/");