Ken,
I don't think you'll get it to work like this. You can't append any
sort of thank you to this page. What you'll have to do is find a way to open
the page that downloads this file as a new window. Then in your original
page you can handle the action and display the message. You could, for a
silly idea off the top of my head, have a linkbutton that when it posts back
to the page can reveal a thank you message in a panel, and also possibly
dump some javascript to the browser that will then open a new window with
the output page appearing in the new browser window instance.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Ken Ross" <belthenaar_at_comcast_dot_netwrote in message
news:Xn**********************************@207.46.2 48.16...
Hi all,
I have an asp.net 2.0 page that allows users to download a file after
clicking the "download now" button. I'm using very similar code to what
I've seen on a number of other posts:
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.TransmitFile(fullFilePath)
Response.End()
What I'd really like to have happen is that after the user clicks the
button and the file download completes, have the page refresh with some
sort of "thank you" message.
I've wasted hours [and hours] trying to work out a solution to this but no
love.
Thanks for any help you can give.
Ken