I created a responsive website in Asp.net using C#, and it functions flawlessly on both desktop and mobile devices. However, when I download Excel for the Nokia Lumia 920, it is downloaded but does not open on the phone. It displays errors such as Incorrect format.
I have used the below-mentioned code for downloading Excel :
Response.AddHeader("content-disposition", "attachment;filename=" + ExcelFileName + ".xlsx");
Response.Charset = "";
Response.ContentType = "application/vnd.ms-excel";
StringBuilder build = new StringBuilder();
//buid contain data
What can be the solution?