Asp.net 小技巧
web网站获取请求地址:
string url = System.Web.HttpContext.Current.Request.Url.Scheme + "://" + System.Web.HttpContext.Current.Request.Url.Authority.TrimEnd('/')+"/controller/action/params";
获取程序运行的基目录:
AppDomain.CurrentDomain.BaseDirectory.TrimEnd('\\');