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 3510
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 discussion thread is closed Replies have been disabled for this discussion. Similar topics
4 posts
views
Thread by Billy Jacobs |
last post: by
|
3 posts
views
Thread by Robert Scheer |
last post: by
|
2 posts
views
Thread by Ivo Tcholakov |
last post: by
|
2 posts
views
Thread by moondaddy |
last post: by
|
2 posts
views
Thread by RJN |
last post: by
|
1 post
views
Thread by RJN |
last post: by
|
1 post
views
Thread by Ryan Malone |
last post: by
|
5 posts
views
Thread by gjzusenet |
last post: by
|
35 posts
views
Thread by keerthyragavendran |
last post: by
| | | | | | | | | | |