I am using the following code to export some csv data to excel. The code has been working fine for ages (using IE) but has recently stopped working. I have noticed that the only way to get the export to work is by holding down the control key?I have tried a few different contenttypes and headers but always get the same issue whereby I have to hold the control key down before I am asked to save or open the file. Does anybody know how I can get around this? Or even why it is happening?Response.ContentType = "Application/x-msexcel"
Response.AddHeader("content-disposition", "attachment; filename=""" & Me.FileName & """")
dim csv as string = "1,2,3,4,5,6"
Response.End() Thanks in advance.
View Complete Post