从服务器下载文件 [英] Download a file from the server
本文介绍了从服务器下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello every1,
我正在通过代码创建一个zip文件。创建zip文件后,它将保存在服务器的路径
Server.MapPath( 〜/ UploadedDocs /& downloadFileName)
当我需要下载我正在使用的文件时
< pre lang =c#> Response.Redirect( 〜/ UploadedDocs /& downloadFileName)
这里 Response.Redirect
无效。任何人都可以帮我做点什么。
提前致谢
解决方案
您好,
您可以查看以下链接吗?
http://csharpdotnetfreak.blogspot.com/2012/01/download-file-from-server-in-aspnet.html [ ^ ]
看看这里:
http://www.c-sharpcorner.com/uploadfile/afenster/how-to-download-a -file-in-Asp-Net / [ ^ ]
感谢你们两位。我会努力的。非常感谢您的回复
Muthuraja Irullandi
ProgramFOX
Hello every1,
i am creating a zip file through code. after creation of zip file it is saved in server under the path
Server.MapPath("~/UploadedDocs/" & downloadFileName)
when i need to download the file that is created i am using
Response.Redirect("~/UploadedDocs/" & downloadFileName)
Here Response.Redirect
is not working. can any one please help me what to do.
Thanks in advance
解决方案
Hi,
Can you check the below link?
http://csharpdotnetfreak.blogspot.com/2012/01/download-file-from-server-in-aspnet.html[^]
Hi,
Have a look here:
http://www.c-sharpcorner.com/uploadfile/afenster/how-to-download-a-file-in-Asp-Net/[^]
Thanks to both of you. i will work on this. Thanks a lot for you response
Muthuraja Irullandi
ProgramFOX
这篇关于从服务器下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文