Hello everyone !
I have an unusual problem.
I create an excel file with my application save the file in a folder, then I try to download that file.
Here is the code:
Response.ContentType = "application/xls"
Response.AppendHeader("Content-Disposition", "attachment; filename=" + fileName)
Response.Clear()
Response.WriteFile(Server.MapPath("~/Upload/" + fileName))
Response.End()
We use IE11 now, but before we had IE8, and everything worked fine.
Here goes my problem. When downloading the file I get this error: "filename.xls couldn't be downloaded!".
In Chrome the download works ok, and sometimes it works in IE11, but those cases are very rare.
I tried to change the code:
Response.Redirect("~/MemberPages/Download.aspx?FileP=" + HttpContext.Current.Server.UrlEncode(Server.M ...
Go to the complete details ...