Hello all,
Thanks in advance for any replies...
Now, my question is: Is it possible to do a multiple files download for a
single response event on an aspx page? If there is, please give me some
directions/sample code or anything.
On my web application, I have a CheckBoxList that shows all the files. The
user will check (select) the files to download, then click on the "Download"
button. A SaveAs dialog pops up to allow the user to select the save
location, then all the selected files will be downloaded to the user's PC.
I tried to run a loop through the selected files, but it didn't work (only 1
file gets downloaded).
Any advice?
My second option is to FTP the selected files to the client. However, I
can't find a way to show the SaveAs dialog AND get the returned save path. I
was able to display the SaveAs dialog using java script, but I don't know
how to get the save path from it. I did a lot of Googling but found nothing
for this. Please help....
Stanav. 5 3618
How about packaging the files in a zip and then having the client download
that file?
"Stanav" <st*******@hotmail.com> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl... Hello all,
Thanks in advance for any replies... Now, my question is: Is it possible to do a multiple files download for a single response event on an aspx page? If there is, please give me some directions/sample code or anything. On my web application, I have a CheckBoxList that shows all the files. The user will check (select) the files to download, then click on the "Download" button. A SaveAs dialog pops up to allow the user to select the save location, then all the selected files will be downloaded to the user's PC. I tried to run a loop through the selected files, but it didn't work (only 1 file gets downloaded). Any advice?
My second option is to FTP the selected files to the client. However, I can't find a way to show the SaveAs dialog AND get the returned save path. I was able to display the SaveAs dialog using java script, but I don't know how to get the save path from it. I did a lot of Googling but found nothing for this. Please help....
Stanav.
Yes, I agree you should zip the files into a single file.
I've heard of people having success with this code: http://www.icsharpcode.net/Ope*nSour.../Default.as*px
Or you could consider calling a command line utility like this: http://www.i386.info/software/*zip23xn.zip
Or you could consider a 3rd party component such as this: http://www.xceedsoft.com/products/zipnet
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:uD**************@tk2msftngp13.phx.gbl... How about packaging the files in a zip and then having the client download that file?
"Stanav" <st*******@hotmail.com> wrote in message news:Oq**************@TK2MSFTNGP09.phx.gbl... Hello all,
Thanks in advance for any replies... Now, my question is: Is it possible to do a multiple files download for a single response event on an aspx page? If there is, please give me some directions/sample code or anything. On my web application, I have a CheckBoxList that shows all the files. The user will check (select) the files to download, then click on the "Download" button. A SaveAs dialog pops up to allow the user to select the save location, then all the selected files will be downloaded to the user's PC. I tried to run a loop through the selected files, but it didn't work (only 1 file gets downloaded). Any advice?
My second option is to FTP the selected files to the client. However, I can't find a way to show the SaveAs dialog AND get the returned save path. I was able to display the SaveAs dialog using java script, but I don't know how to get the save path from it. I did a lot of Googling but found nothing for this. Please help....
Stanav.
Thank you for replying, Peter & Steve...
I have thought about zipping all the user selected files into a single one,
however that would take alot more overhead (copy the files to a temp folder,
zip them, and delete them after the download is done. Also, at the client
side, the user must unzip the file before he could use it... )
Third party components are too expensive for me.... Thus I always try not to
go third party. Besides, the learning is really more important. If I go 3rd
party, I'm not going to learn much how somethining got done.
So, is there a way to get the client's save path in ASP.NET? That is, when
the Save dialog pops up in the browser and the user chooses a location to
save then click OK, instead of doing Response.WriteFile(fileName), I just
want to grap the save path and then FTP the files to that directory at the
client PC...
Thanks again for the responses.
Stanav.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Yes, I agree you should zip the files into a single file.
I've heard of people having success with this code: http://www.icsharpcode.net/Ope*nSour.../Default.as*px
Or you could consider calling a command line utility like this: http://www.i386.info/software/*zip23xn.zip
Or you could consider a 3rd party component such as this: http://www.xceedsoft.com/products/zipnet
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message news:uD**************@tk2msftngp13.phx.gbl... How about packaging the files in a zip and then having the client download that file?
"Stanav" <st*******@hotmail.com> wrote in message news:Oq**************@TK2MSFTNGP09.phx.gbl... Hello all,
Thanks in advance for any replies... Now, my question is: Is it possible to do a multiple files download for a single response event on an aspx page? If there is, please give me some directions/sample code or anything. On my web application, I have a CheckBoxList that shows all the files. The user will check (select) the files to download, then click on the "Download" button. A SaveAs dialog pops up to allow the user to select the save location, then all the selected files will be downloaded to the user's PC. I tried to run a loop through the selected files, but it didn't work (only 1 file gets downloaded). Any advice?
My second option is to FTP the selected files to the client. However, I can't find a way to show the SaveAs dialog AND get the returned save path. I was able to display the SaveAs dialog using java script, but I don't know how to get the save path from it. I did a lot of Googling but found nothing for this. Please help....
Stanav.
There is new improved compression support in the new .NET framework 2.0 so
you don't have to buy a 3rd party component.
System.IO.Compression
More info: http://www.developer.com/net/net/article.php/3510026
Security restrictions would prevent the design you proposed - direct access
to a user's hard drive is forbidden for web applications, and for good
reasons! The only way you could do that is with a thick client such as an
ActiveX control, which the user would have to accept despite security
warnings.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Stanav" <st*******@hotmail.com> wrote in message
news:e3**************@TK2MSFTNGP15.phx.gbl... Thank you for replying, Peter & Steve... I have thought about zipping all the user selected files into a single one, however that would take alot more overhead (copy the files to a temp folder, zip them, and delete them after the download is done. Also, at the client side, the user must unzip the file before he could use it... ) Third party components are too expensive for me.... Thus I always try not to go third party. Besides, the learning is really more important. If I go 3rd party, I'm not going to learn much how somethining got done.
So, is there a way to get the client's save path in ASP.NET? That is, when the Save dialog pops up in the browser and the user chooses a location to save then click OK, instead of doing Response.WriteFile(fileName), I just want to grap the save path and then FTP the files to that directory at the client PC...
Thanks again for the responses. Stanav.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Yes, I agree you should zip the files into a single file.
I've heard of people having success with this code: http://www.icsharpcode.net/Ope*nSour.../Default.as*px
Or you could consider calling a command line utility like this: http://www.i386.info/software/*zip23xn.zip
Or you could consider a 3rd party component such as this: http://www.xceedsoft.com/products/zipnet
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message news:uD**************@tk2msftngp13.phx.gbl... How about packaging the files in a zip and then having the client download that file?
"Stanav" <st*******@hotmail.com> wrote in message news:Oq**************@TK2MSFTNGP09.phx.gbl... Hello all,
Thanks in advance for any replies... Now, my question is: Is it possible to do a multiple files download for a single response event on an aspx page? If there is, please give me some directions/sample code or anything. On my web application, I have a CheckBoxList that shows all the files. The user will check (select) the files to download, then click on the "Download" button. A SaveAs dialog pops up to allow the user to select the save location, then all the selected files will be downloaded to the user's PC. I tried to run a loop through the selected files, but it didn't work (only 1 file gets downloaded). Any advice?
My second option is to FTP the selected files to the client. However, I can't find a way to show the SaveAs dialog AND get the returned save path. I was able to display the SaveAs dialog using java script, but I don't know how to get the save path from it. I did a lot of Googling but found nothing for this. Please help....
Stanav.
Stanav,
See if this can help you: http://the-stickman.com/web-developm...-file-element/
Eliyahu
"Stanav" <st*******@hotmail.com> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl... Hello all,
Thanks in advance for any replies... Now, my question is: Is it possible to do a multiple files download for a single response event on an aspx page? If there is, please give me some directions/sample code or anything. On my web application, I have a CheckBoxList that shows all the files. The user will check (select) the files to download, then click on the
"Download" button. A SaveAs dialog pops up to allow the user to select the save location, then all the selected files will be downloaded to the user's PC. I tried to run a loop through the selected files, but it didn't work (only
1 file gets downloaded). Any advice?
My second option is to FTP the selected files to the client. However, I can't find a way to show the SaveAs dialog AND get the returned save path.
I was able to display the SaveAs dialog using java script, but I don't know how to get the save path from it. I did a lot of Googling but found
nothing for this. Please help....
Stanav.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Billy Jacobs |
last post by:
Is there a way to download multiple files from a server?
If not then:
How do I zip up multiple files using the .net classes in
vb?
Thanks
Billy Jacobs
|
by: Robert Scheer |
last post by:
Hi.
Is it possible to download multiple files at once? One of my pages
needs to allow my users to download 6 files. Instead of one link for
each file, I am trying to create just one link that...
|
by: Ivo Tcholakov |
last post by:
Hello,
I created an application where the users need to download files. I have the
list of the files stored in a database and I present the list to download in
a Datagrid. Here comes my question....
|
by: moondaddy |
last post by:
I have a asp.net app where a user will need to download multiple files at
once.
Below is some sample code I'm using to download a single file which works
perfectly, however, rather than a single...
|
by: RJN |
last post by:
Hi
I need help in allowing the user to download multiple files at once.
User will be displayed a grid on the browser which will list the various
files available on the web server for download...
|
by: RJN |
last post by:
Hi
Sorry for posting this again. Requirement is to allow the user to
download multiple files at once from browser. User will be displayed a
grid on the browser which will list the various files...
|
by: Ryan Malone |
last post by:
I have a situation where I need to download multiple files in a vb.net
application.
To speed up the process, I am trying to download multiple files at one
time looping through each of the files...
|
by: gjzusenet |
last post by:
Hello.
Though Python supports threading, I think it is limited to python code
- as soon as you issue a command that uses an external (C?) module, all
of your python threads hang until this command...
|
by: keerthyragavendran |
last post by:
hi
i'm downloading a single file using multiple threads...
how can i specify a particular range of bytes alone from a single
large file... for example say if i need only bytes ranging from...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: linyimin |
last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
|
by: kcodez |
last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
|
by: Taofi |
last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same
This are my field names
ID, Budgeted, Actual, Status and Differences
...
|
by: DJRhino1175 |
last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this -
If...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: lllomh |
last post by:
How does React native implement an English player?
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
| |