How can I use Server.MapPath() from global.asax?

原创 2013年12月03日 17:37:06
            //引用:using System.Web.Hosting;
            string filePathcsv = "";
            string file = "";
            string strFile = "LukfookGeovindu";
            strFile = strFile + DateTime.Now.ToString("yyyyMMddhhmmss");
            strFile = strFile + ".csv";
            //file = strFile; 
            //file = HttpContext.Current.Server.MapPath("/ReportExcel/" + strFile); //此用法存在問題
            // Server.MapPath("/ReportExcel/" + strFile);//存在問題
            file = HostingEnvironment.MapPath("/ReportExcel/" + strFile);

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?

直接下载下面的压缩包,然后解压出来,把\bin\win32\mexopts里面对应的文件拷贝到matlab2010a安装路径里面对应的文件夹下面即可!!   I have Visual Studi...

How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?

标题 How can I use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)?1 ...

How can I get a String from HID device in Python with evdev?

http://stackoverflow.com/questions/19732978/how-can-i-get-a-string-from-hid-device-in-python-with-ev...

How can I get my public IP address from the command line, if I am behind a router?

24down voteaccepted Assuming your system has 2 ethernet devices, eth0 and eth1 and eth0 is con...

How Do I Send Mail From Windows 2008 Server/IIS7?

You can use the following components to send mail from your Windows 2008/IIS7 web server: System....

how to tell if you can use kvm

kvm Check out https://help.ubuntu.com/community/KVM for more updated and complete information...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)