From within a DLL that's being called by a C#.NET web app, how do you find the base url of the web app?
Will this work?
HttpContext.Current.Request.Url
UPDATE:
To get the base URL you can use:
HttpContext.Current.Request.Url.GetComponents(UriComponents.SchemeAndServer, UriFormat.Unescaped)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With