Connecting Tech Pros Worldwide Help | Site Map

Download more than 1 file

 
LinkBack Thread Tools Search this Thread
  #1  
Old August 17th, 2006, 11:45 AM
Gary
Guest
 
Posts: n/a
Default Download more than 1 file

Hi

I'm using ASP.NET and setting window.location.href in my web page to
output an audio file that the user is prompted to download. I would
like to provide a link so that the user can download the audio file and
an XML file one after the other. I've been experimenting with opening a
new
window, but there must be a cleaner way of doing this. Any ideas?


  #2  
Old August 17th, 2006, 12:25 PM
Yanick
Guest
 
Posts: n/a
Default Re: Download more than 1 file

Gary wrote :
Quote:
Hi
>
I'm using ASP.NET and setting window.location.href in my web page to
output an audio file that the user is prompted to download. I would
like to provide a link so that the user can download the audio file and
an XML file one after the other. I've been experimenting with opening a
new
window, but there must be a cleaner way of doing this. Any ideas?
I don't see how javascript is related to this issue... try asking in
ASP.Net related forums. Javascript is a client-side language bound to a
sandbox ; meaning that it doesn't know much about what's going on
outside DOM trees and browser objects. You won't find anything
cross-browser (or generally accessible by most users) that will do
safely what you wish to accomplish in Javascript.

What I could suggest, though, would be to send the audio file as a
stream in ASP.Net (server side) to the client, and when done, send the
second file the same way. ASP.Net's forums will tell you more about it
(issues, fixes, ...), or even point you a better solution... perhaps.

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.