当我尝试在下载文件后重定向到新页面时,它不起作用。我需要在这段代码中删除或修改什么吗?调试器无法到达它。
byte[] fileData = (byte[])sqlRead[3];
Response.Clear();
Response.AppendHeader("content-disposition", "attachment; filename=" + sqlRead[2]);
Response.ContentType = "application/octet-stream";
Response.BinaryWrite(fileData);
Response.Flush();
Response.End();
Response.Clear();
Response.Redirect("Questions.aspx");