Connecting Tech Pros Worldwide Forums | Help | Site Map

Download files

Member
 
Join Date: Aug 2008
Posts: 42
#1: Sep 26 '08
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.

DrBunchman's Avatar
Moderator
 
Join Date: Jan 2008
Location: Winchester, UK
Posts: 930
#2: Sep 26 '08

re: Download files


Hi Nagesh,

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

Dr B
Member
 
Join Date: Aug 2008
Posts: 42
#3: Sep 27 '08

re: Download files


Quote:

Originally Posted by DrBunchman

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.
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,134
#4: Sep 29 '08

re: Download files


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
jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#5: Sep 29 '08

re: Download files


Quote:

Originally Posted by Frinavale

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
DrBunchman's Avatar
Moderator
 
Join Date: Jan 2008
Location: Winchester, UK
Posts: 930
#6: Sep 29 '08

re: Download files


Could you have some server side code zip all the selected files up and have the user download the zip file?

Dr B
Reply