I may not be the first to ask this question, but I cannot find what I was looking for after the inspection. I want to get the base url from the url. I tried
HttpContext.Current.Request.Url.AbsoluteUri
It will return me the full URL
http:
I needed only here (for example)
http:
Thank you for your help.
source
share