I am using some code similar to the code below to open a word document on my ASP.net app. Once the file has been downloaded and opened I then want to either redirect to another page or refresh the screen but nothing works after response.end and if i add it before response.end the browser never downloads the file?
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name
Response.ContentType = "application/octet-stream";
Any ideas? Thanks
View Complete Post