Absolute url from relative path

  • Thread starter Thread starter Andreas Zita
  • Start date Start date
A

Andreas Zita

How do I get the absolute url for a file from c#-code?

I have the path "~/file.aspx" and I want
"http://www.mydomain.xyz/myapp/file.aspx"

Basically I want to get the complete app-path url including the domain from
the current app, but I have only found ways of getting the physical path and
the virtual path ???

/Andreas
 
Back
Top