Update UI after file download

G

gabe

I'm using the 1.1 framework.

In my app, the user downloads a file after is has been processed. I'm
trying to update the page that that they are downloading the file from
with a status message. How can I do that? A command button postsback to
the server, and stream is sent the client. It is followed with a
response.end().

Response.Clear()

Response.AppendHeader("Content-disposition", "attachment;
filename=" & FileName)

Response.ContentType = "text"

Response.Write(processedFile)

Response.End()

Can I programmatically set the <Body onload event to call some
javascript? How can that be done?


Thanks in advance,
Gabe
 
G

gabe

I forgot to add that file is uploaded to the server and is processed in
memory on the server. If the processing was successful, then the user
gets the 'save' dialog box.

Gabe
 
K

Kevin Spencer

Do a redirect to a separate page that (only) sends the file.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 

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

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top