Tag: httpresponse httpwebresponse

发送要下载的文件后显示消息

在发送要下载的文件后,我想在我的aspx页面上更新一些内容。 (之前显示的一些错误消息。)。 我相信这是不可能的,但你会给我一个解决方案吗? 以下是发送文件以供下载的代码: Response.ContentType = “Application/zip”; Response.AddHeader(“Content-Disposition”, “attachment; filename=” + e.CommandArgument); Response.BinaryWrite(fileStream.ToArray()); Response.Flush(); Response.Close(); Response.End(); 编辑澄清:我也相信没有合理的解决方案。 但是,可能有一个我不知道的Javascript技巧。