public static string RequestUrl()
        {
            string path = HttpContext.Current.Request.Url.Scheme.ToString() + "://" + HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.ApplicationPath.ToString();

            return path;
        }


本文转载:CSDN博客