获取项目中filedataa文件夹下面的1111.pdf
string path = System.Web.Hosting.HostingEnvironment.MapPath(@"/filedata/1111.pdf");
获取当前目录
string path = System.Web.Hosting.HostingEnvironment.MapPath(@"~/");
时间:2022-09-28 14:20:55
获取项目中filedataa文件夹下面的1111.pdf
string path = System.Web.Hosting.HostingEnvironment.MapPath(@"/filedata/1111.pdf");
获取当前目录
string path = System.Web.Hosting.HostingEnvironment.MapPath(@"~/");