I have created an application page to download file. I'm using the following code to download the file. After downloading file if I press the download button again it doesn't respond or post back. I assume calling Response.End() ends the connection between server and client. Is there any work around to this issue.
Response.ContentType = "application/pdf"; Response.AppendHeader("Content-Disposition", "attachment; filename=output.pdf"); Response.BinaryWrite(file); Response.End();