Last post Apr 22, 2010 05:56 AM by vrunda.bhattbhatt
May 21, 2007 02:18 PM|bardhes|LINK
I've been battling with this problem all morning, so I'm hoping someone can help me.
Essentially, I need my page to continue executing after a file has been opened or downloaded.
I have tried using Response.TransmitFile and Response.WriteFile and combined them with combinations of Response.Flush, Response.Close and Response.End, but the code following the document opening never fires, and the changes to controls (changes to label
text and visibility of buttons) that I have place in the preceeding code don't get rendered either.
Many thanks in advance.
May 22, 2007 02:47 PM|Bugs66|LINK
Interesting. All of a sudden an application I have is having this problem today as well. I get a communication error for my file downloads that are approximately larger than 45mb or so. The application had been previously
working for months just fine. I haven't changed any code.
Here is my code, pretty much the same:
Response.ContentType = "application/octet-stream"
"attachment; filename=" & sFileinfo.Name)
I would appreciate anyone's idea as to why this is happening all of a sudden. I have been working on this all morning as well with no solution yet.
For the time being, my workaround is to use Response.Redirect(url to file) which works fine.
Jun 06, 2007 10:52 PM|edmund|LINK
Take a look
Apr 22, 2010 05:56 AM|vrunda.bhattbhatt|LINK
Try this link : http://stackoverflow.com/questions/2688282/response-transmitfile-and-delete-it-after-transmission