Request.Url.GetLeftPart(UriPartial.Authority).ToString();
//返回 http://localhost:9246(网站跟路径地址)
Request.Url.GetLeftPart(UriPartial.Path).ToString();
//返回 http://localhost:9246/......(不带参数的当前页面的完整路径地址)
Request.Url.GetLeftPart(UriPartial.Path).ToString();
//返回 http://localhost:9246/......(带参数的当前页面的完整路径地址)
Request.Url.GetLeftPart(UriPartial.Scheme).ToString();
//返回 http:// 空目录