Get URL of ASP.Net Page in code-behind [duplicate]
Use this:
Request.Url.AbsoluteUri
That will get you the full path (including http://...)
If you want only the scheme and authority part of the request (protocol, host and port) use
Request.Url.GetLeftPart(UriPartial.Authority)