Asp Net Get Server Url

[Solved] Asp Net Get Server Url | Vb - Code Explorer | yomemimo.com
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

Answers related to asp net get server url

Code Explorer Popular Question For Vb