Visual Basic .NET » ASP.NET General Discussion
Downloading file from server using AJAX. -- Nitya Prakash --


Hi

I have created a page where Media player is embedded. A button is placed on same page to download currently playing track. When user click on download, than song shuld not stop playing and download dialog box shuld appear. Page should not be refreshed. Is it possible with AJAX scripting.

What ever i come to know is that ajax retrun response in either text or xml, not in binary response.

Any help will be appriciated.

Thanks,

Nitya

-- Albert Weinert --


Nitya Prakash schrieb:

I have created a page where Media player is embedded. A button is
placed on same page to download currently playing track. When user
click on download, than song shuld not stop playing and download dialog
box shuld appear. Page should not be refreshed. Is it possible with
AJAX scripting.

It's possible with simple Html. 


Download

or


--
Freundliche Grüße

Albert Weinert

http://der-albert.com 

-- Nitya Prakash --


Thanks Albert,

File will be loaded in same page and file download dialog box will appear, but song stop playing in that page. My requirement page should not be refreshed. I also don't want to open that page in another window. Action should take place in very same page.

Nitya
--------------------------------------------------------------------
Albert Weinert wrote:
Nitya Prakash schrieb:

> I have created a page where Media player is embedded. A button is
> placed on same page to download currently playing track. When user
> click on download, than song shuld not stop playing and download dialog
> box shuld appear. Page should not be refreshed. Is it possible with
> AJAX scripting.

It's possible with simple Html.

Download

or


--
Freundliche Grüße

Albert Weinert

http://der-albert.com 


 

-- Michael Schwarz --


Hi,

put an IFrame in the page and change the .src property to the file you want to download.

Regards,
Michael
On 7/7/06, Nitya Prakash wrote:

Thanks Albert,

File will be loaded in same page and file download dialog box will
appear, but song stop playing in that page. My requirement page should
not be refreshed. I also don't want to open that page in another
window. Action should take place in very same page.

Nitya
--------------------------------------------------------------------
Albert Weinert wrote:
> Nitya Prakash schrieb:
>
> > I have created a page where Media player is embedded. A button is
> > placed on same page to download currently playing track. When user
> > click on download, than song shuld not stop playing and download dialog
> > box shuld appear. Page should not be refreshed. Is it possible with
> > AJAX scripting.
>
> It's possible with simple Html.
>
> Download
>
> or
>
>
>
>
> --
> Freundliche Grüße
>
> Albert Weinert
>
>
http://der-albert.com 

>

--  

Best regards | Schöne Grüße Michael

Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/
mailto:info
-- Nitya Prakash --


Thanks Michael

I have tried this also, but as sooon as the File Download dialog box appears, song stop playing. Some one suggested me, that do it using AJAX . But I don't know how to do it.

I am struggling with issue for a week, but not got proper solution. I have tried all possible way as suggested in this thread.

-- Michael Schwarz --


It is not working with "AJAX", so you have use an IFrame or a new window...

Regards,
Michael

On 7/7/06, Nitya Prakash wrote:

Thanks Michael

I have tried this also, but as sooon as the File Download dialog box
appears, song stop playing. Some one suggested me, that do it using
AJAX . But I don't know how to do it.

I am struggling with issue for a week, but not got proper solution. I
have tried all possible way as suggested in this thread.
>

--  

Best regards | Schöne Grüße Michael

Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz 
/
http://www.schwarz-interactive.de 
/
mailto:info
-- Albert Weinert --


Nitya Prakash schrieb:

I have tried this also, but as sooon as the File Download dialog box
appears, song stop playing. Some one suggested me, that do it using

Maybee somit other is wrong. 


AJAX . But I don't know how to do it.

I am struggling with issue for a week, but not got proper solution. I
have tried all possible way as suggested in this thread.

 


Download
--
Freundliche Grüße

Albert Weinert

http://der-albert.com 

-- Nitya Prakash --


My page is embedding Media Player Control where i have give url of ASX file. I have to give option of downloading currently playing song.
Download file's url is an ASPX page where i am writing song file using
"Response.WriteFile( "Physical path of file")". When this page loads into iframe download dialog box appears but song stop playing in MediaPlayer control.

really is there any other way to download the file without stoping song playing except opening download page in another window.

Please somebody help me.

-- o0JoeCool0o --


have u tried a real frame instead of an iframe?

[Submit Comment]Home