Posted on: 3/29/2012 3:38:11 AM | Views : 393

Say, if I started file downloading process by outputting headers like so:
Response.ContentType = "application/zip"; Response.AppendHeader("content-disposition", "attachment; filename=\"" + strZipName + "\""); Response.CacheControl = "Private"; Response.Cache.SetExpires(DateTime.Now.AddMinutes(3));
And then later in code I realize that an error ocurred and I need to cancel the download process and instead output the data as HTML (in a normal way). Is there any way to do that?
...

Go to the complete details ...