G
GD
Hi,
I have the following C# code in a page:
Response.ContentType = "APPLICATION/OCTET-STREAM";
Response.AppendHeader("Content-Disposition", "Attachment;
Filename=\"C:\\Download.txt\""
FileInfo fileToDownload = new FileInfo("C:\\Test.txt");
Response.Flush();
Response.WriteFile(fileToDownload.FullName);
Response.End();
string strAmIForgot = "This line doesnot get executed";
The dialog pops up and saves the file nicely. However, the code after
Response.End() doesn't get executed after the dialog is closed. Any idea or
work around?
Thanks.
GD
I have the following C# code in a page:
Response.ContentType = "APPLICATION/OCTET-STREAM";
Response.AppendHeader("Content-Disposition", "Attachment;
Filename=\"C:\\Download.txt\""
FileInfo fileToDownload = new FileInfo("C:\\Test.txt");
Response.Flush();
Response.WriteFile(fileToDownload.FullName);
Response.End();
string strAmIForgot = "This line doesnot get executed";
The dialog pops up and saves the file nicely. However, the code after
Response.End() doesn't get executed after the dialog is closed. Any idea or
work around?
Thanks.
GD