FileDownload Question

P

prefect

I am trying to make a file download functionality similiar to the downloads
at www.microsoft.com/downloads/

I have a FileDownload.aspx page. when user clicks download button , i open a
popup and the file identifier is sent to FileDownload.aspx . I use
Response.WriteFile( ) to send the file to client. But how do i close the
Popup after the "Save File" window appears ?

Putting a delay to wait for the response to reach the client seems to work.
But at microsoft site,i feel like popup closes immediately after "Save
File" window appears.

function openPopup( )
(
display = window.open('FileDownload.aspx?file=...',....)
setTimeout("display.close()",5000);
)

thanks for your help.

ps: i can send the code , if necessary or someone needs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top