IIS 的当前网站路径(例子:获取服务器或本地图片路径):
方法一:string strUrl =HttpContext.Current.Request.Url.Scheme(http) + "://" + HttpContext.Current.Request.Url.Authority(主机+端口) + "/Goods/1245.jpg";
如:http://localhost:端口/Goods/1245.jpg
方法二:string strUrl = HttpContext.Current.Server.MapPath("/Goods/1245.jpg");
如:http://www.baidu.com/Goods/1245.jpg