string tempPath = this.Request.ApplicationPath;//.net 获取 虚拟目录名字
tempPath = tempPath.Length > 0 && tempPath!="/" ? (tempPath.Replace("/","") + "/") : ("");
转载于:https://www.cnblogs.com/wangdetian168/archive/2011/02/16/1955819.html
转载于:https://www.cnblogs.com/wangdetian168/archive/2011/02/16/1955819.html