从服务器路径c#asp下载文件? [英] Download file from server path c# asp ?
本文介绍了从服务器路径c#asp下载文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
i将我的文件上传到我的asp web项目上的服务器文件并将路径保存在数据库中
现在我尝试下载它
我怎么能用简单的代码呢
我的路径是〜/ StatisticalsFiles / UploadFile1.xlsx
please帮助:)
解决方案
参考这些CP文章,
1. 在ASP.NET中使用SQL Server上载和下载文件 [ ^ ]
2.在ASP.NET中文件上载和下载 [ ^ ]
hi
i upload my file to server file on my asp web project and save the path in database
now i try to download it
how can i do that with simple code
my path is "~/StatisticalsFiles/UploadFile1.xlsx"
please help :)
解决方案
Refer these CP articles,
1. Upload and Download Files with SQL Server in ASP.NET[^]
2. File Upload and Download in ASP.NET[^]
这篇关于从服务器路径c#asp下载文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文