多次下载 [英] Multiple Download

查看:77
本文介绍了多次下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用复选框选择它们来从网格中下载多个文件.然后,要选择位置,需要一个类似于Fileupload控件的控件.当我单击按钮选择位置后,应开始下载.有人为此提供了代码吗?

在此先感谢...

I want to download multiple files from a grid by selecting them using check boxes. Then to select location a control similar to Fileupload control is needed. After selecting the location when i click a button the download should begin. Any one got code for that??

Thanks in Advance...

推荐答案

简短的回答是,我认为您不能.浏览器(和用户首选项)将决定该文件的最终位置.

一个您可以*做的事情是,让用户选中多个复选框,并有一个按钮,可以将用户带到另一个页面(或回发到同一页面)以获取一个zip文件的单个下载链接.该zip文件将包含所有选中的文件.

因此,现在的问题真正变成了我如何创建一个可供下载的zip文件".

似乎有一个很好的教程此处.只需忽略上传和数据库部分.

瑞安(Ryan)
The short answer is that I don''t think you can. The browser (and user preferences) are going to decide where that file ends up.

One think you *could* do is have the user check multiple boxes and have a button that takes the user to another page (or postback to the same page) for a single download link of a zip file. That zip file will contain all of the checked files.

So now the question really becomes "how do I create a zip file for download."

Seems like there is a good tutorial about it Here. Just ignore the uploading and database part.

Ryan


这篇关于多次下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆