I want to update something on my aspx page, after I send a file to be downloaded. (Some error messages shown before.). I believe it's not possible, but would you provide me a solution?
Here is the code to send the file to download:
Response.ContentType = "Application/zip";
Response.AddHeader("Content-Disposition", "attachment; filename=" + e.CommandArgument);
Response.BinaryWrite(fileStream.ToArray());
Response.Flush();
Response.Close();
Response.End();
Editing to clarify: I also believe that there is no logical solution. However, there could be a Javascript trick which I am not aware of.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…