全速加载中

ASP.NET MVC 获取当前访问域名

 var request = filterContext.HttpContext.Request;
            string url = request.Url.Authority;
            string functionurl = request.RawUrl;
            base.OnActionExecuting(filterContext);
            filterContext.HttpContext.Response.Write("url:" + url + functionurl);

 

posted @ 2016-08-18 10:11  许鸿飞  阅读(5118)  评论(0编辑  收藏  举报