opik074
little notes
Selasa, 26 Agustus 2014
Get URL Address ASP.NET
String strPathAndQuery = HttpContext.Current.Request.Url.PathAndQuery;
String strUrl = HttpContext.Current.Request.Url.AbsoluteUri.Replace(strPathAndQuery, "/");
Result
"
http://localhost:1234/
"
"
https://www.something.com/
"
Source:
http://stackoverflow.com/questions/593709/how-to-get-the-url-of-the-current-page-in-c-sharp
Tidak ada komentar:
Posting Komentar
‹
›
Beranda
Lihat versi web
Tidak ada komentar:
Posting Komentar