I have developed a responsive website in asp.net using C# and it's working fine in Desktop as well as Mobile, all funcationality working fine.
But in Nokia Lumia 920 when I download Excel it is downloaded it but not opening in Phone. It throws error like 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
Response.Output.Write(build.ToString());
Response.Flush();
Response.End();
What can be the solution?