Question : asp.net get server url
Answered by : sparkling-scarab-apqn37egmbmj
String strPathAndQuery = HttpContext.Current.Request.Url.PathAndQuery;
String strUrl = HttpContext.Current.Request.Url.AbsoluteUri.Replace(strPathAndQuery, "/");
Source : https://stackoverflow.com/questions/593709/how-to-get-the-url-of-the-current-page-in-c-sharp | Last Update : Thu, 29 Sep 22