📜  c# Request.Url - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:12.589000             🧑  作者: Mango

代码示例1
string url = HttpContext.Current.Request.Url.AbsoluteUri;
// http://localhost:1302/TESTERS/Default6.aspx

string path = HttpContext.Current.Request.Url.AbsolutePath;
// /TESTERS/Default6.aspx

string host = HttpContext.Current.Request.Url.Host;
// localhost