By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,241 Members | 799 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,241 IT Pros & Developers. It's quick & easy.

Deleting file after Response.WriteFile(filepath) download

P: n/a
I have written a web form which downloads files to the
client automatically. After the download completes, I
would like to delete the file that was downloaded. I
can't tell how to wait until the download has completed to
delete the file, if I run the File.Delete(filepath)
command after Response.WriteFile(filepath), the file is
deleted before it can be downloaded.

Any suggestions?



Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.