Converting from a Relative to an absolute url
I was stumped when I tried to convert a relative URL like “/folder/Page.aspx” to an absolute URL like “http://servername/folder/Page.aspx” and I didn’t find an easy way to do it. The only way i saw was to look at the Request or the Url and actually build it up. Like
Url.Scheme +”://” + Url.Host + relative
Something feels wrong tho, its .net it should be easy, Any ideas?