下载ASP.NET中的已检查文件

时间:2021-03-15 03:14:55

I'm creating a web page which has DataList. All Items in DataList have Checkboxes front of them. User checks some files, or all files, maybe just one file to download them. How can i make it happen? I'm using ASP.NET 4.5 Web Forms. Thanks :)

我正在创建一个包含DataList的网页。 DataList中的所有项目都有复选框。用户检查一些文件或所有文件,可能只是一个文件来下载它们。我怎样才能实现呢?我正在使用ASP.NET 4.5 Web窗体。谢谢 :)

1 个解决方案

#1


2  

there are two ways doing it

有两种方法可以做到这一点

1). Open multiple window with javascript with new name, call your aspx page in that new window.

1)。使用带有新名称的javascript打开多个窗口,在新窗口中调用您的aspx页面。

2).First zip all selected files and then download that single zip file

2)。首先压缩所有选定的文件,然后下载该单个zip文件

#1


2  

there are two ways doing it

有两种方法可以做到这一点

1). Open multiple window with javascript with new name, call your aspx page in that new window.

1)。使用带有新名称的javascript打开多个窗口,在新窗口中调用您的aspx页面。

2).First zip all selected files and then download that single zip file

2)。首先压缩所有选定的文件,然后下载该单个zip文件