IE8 won't download a file with a custom mime/type with UAC enabled

后端 未结 5 494
逝去的感伤
逝去的感伤 2021-01-19 02:44

I have a .net service running on the local machine (Windows 7 x64, IE8, .net 3.5, C#) that returns a file to the browser in response to a user action. Using firefox or chrom

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 03:22

    For me the solution to this problem was changing

    Response.ContentType = "application/vnd.ms-excel";
    

    to

    Response.ContentType = "text/csv";
    

提交回复
热议问题