Loading

How can I get the baseurl of site?

string baseUrl = Request.Url.Scheme + "://" + Request.Url.Authority +Request.ApplicationPath.TrimEnd('/') + "/";

 

posted @ 2017-02-08 19:27  Dhoopu  阅读(168)  评论(0编辑  收藏  举报