轉來的 原文地址 http://www.cnblogs.com/dudu/p/3435987.html
方法1
var uri = Request.Url.Scheme + "://" + Request.Url.Host + "/aggsite/topviews";
方法2
var uri = Request.Url.GetLeftPart(UriPartial.Authority) + "/aggsite/topviews";
轉來的 原文地址 http://www.cnblogs.com/dudu/p/3435987.html
方法1
var uri = Request.Url.Scheme + "://" + Request.Url.Host + "/aggsite/topviews";
方法2
var uri = Request.Url.GetLeftPart(UriPartial.Authority) + "/aggsite/topviews";