By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

Download files

P: 49
Hello,

Can anyone tell me how can i create a button in asp and link to download files from some folder one by one Simultaneously?
I wrote some code to download one file,i don't no how to write the code to download files one by one from specific folder.
my code is

(I WROTE IN ASP USING VB.NET)
<a href="Test1/0MM0.wmv">TEST</a>

Here Test1 is the folder and 0MM0.wmv is the file suppose two files in the Test1 folder means how can i download files one by one for that what code i want to write in ASP using VB.NET.

Here i want to create some fun suppose when the user select one file using button after he downlaod the file the button will be Disable.and when he upload the file the button will be enable.Already i wrote some code for Uploading.

So i wnat the code for downloading.so please help me.

Thanks in advance,
Nagesh.
Sep 26 '08 #1
Share this Question
Share on Google+
5 Replies


DrBunchman
Expert 100+
P: 979
Hi Nagesh,

Can you confirm please whether you are using Classic ASP or ASP.NET please?

Dr B
Sep 26 '08 #2

P: 49
Hi Nagesh,

Can you confirm please whether you are using Classic ASP or ASP.NET please?

Dr B
Hello Sir i am using Classic ASP.( Microsoft Visual Interdev 6.0).

Thanks,
Nagesh.
Sep 27 '08 #3

Frinavale
Expert Mod 5K+
P: 9,731
Have you considered packaging the files for download into a .zip file?
This will let them download more than one file at a time...in a package.

I don't think there is a way to do what you are asking without dynamically generating a link for each file and allowing the user to select which files they want to download.

-Frinny
Sep 29 '08 #4

jhardman
Expert 2.5K+
P: 3,405
Have you considered packaging the files for download into a .zip file?
This will let them download more than one file at a time...in a package.

I don't think there is a way to do what you are asking without dynamically generating a link for each file and allowing the user to select which files they want to download.

-Frinny
I believe Frinny is right. I have never seen anyone get around this limitation. I would think it might be possible using javascript (as long as it is allowed by security settings): when the first file is downloaded start downloading the second etc, but I've never seen this done either, and I don't know enough javascript to try it.

Jared
Sep 29 '08 #5

DrBunchman
Expert 100+
P: 979
Could you have some server side code zip all the selected files up and have the user download the zip file?

Dr B
Sep 29 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.