首页 新闻 赞助 找找看

asp里面下载问题

0
悬赏园豆:80 [已关闭问题] 关闭于 2011-07-12 09:18

我已经把数据的路径保存到数据库了,,,,,但是,,下载的时候 

              string fileName = "20110711105101.txt";//客户端保存的文件名
               string filePath = Server.MapPath(Session["Path"].ToString());//路径

这里的路径怎么写、、、、

绝对路径是E\e\Solution1\UI\upload

次时代的主页 次时代 | 初学一级 | 园豆:5
提问于:2011-07-11 16:05
< >
分享
所有回答(2)
0

Server.MapPath(Path.Combine(@"~\upload", "20110711105101.txt"))

Path.Combine(@"E:\Solution1\UI\upload", "20110711105101.txt"); 

鹤冲天 | 园豆:2379 (老鸟四级) | 2011-07-11 16:42
0

Path.Combine(@"E:\Solution1\UI\upload", fileName.Replace("/","\\"));

慧☆星 | 园豆:5640 (大侠五级) | 2011-07-12 09:06
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册