PC Review


Reply
Thread Tools Rate Thread

Deleting file after Response.WriteFile(filepath) download

 
 
Todd Richardson
Guest
Posts: n/a
 
      1st Aug 2003
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?

Thanks,

Todd

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.WriteFile() Doesn't Trigger Download Managers Khafancoder Microsoft ASP .NET 5 15th Aug 2007 07:32 PM
avoiding - File download-security warning window when using response.writefile(filepath) Cindy H Microsoft VB .NET 1 4th Jul 2006 06:42 AM
Problem to download excel file using Response.writefile Pankaj Garg Microsoft Dot NET 0 12th Jul 2004 05:53 PM
How to redirect output back to browser after Response.WriteFile download??? Earl Teigrob Microsoft ASP .NET 0 20th Jan 2004 06:29 PM
file download - using response.writefile() EJChew Microsoft ADO .NET 1 31st Aug 2003 04:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:15 PM.