G
Guest
I'm trying to stream download an excel file from a web server. When the "Open/Save/Cancel" dialog comes up, clicking "Save" will save the file just fine. But, clicking "Open" will result in another "Open/Save/Cancel" dialog which I also have to click "Open" on. What gives with the double dialog
The download code I'm using looks like the following
Response.ClearHeaders()
Response.Clear()
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Response.AddHeader("Content-Disposition", "attachment;filename=" + sNameOnly)
Response.WriteFile(sFileName)
Note, the "sNameOnly" and "sFileName" variables are strings that are elswhere set to be the name of the file and the full (server-side) pathname, respectively
Thanks
Lowel
The download code I'm using looks like the following
Response.ClearHeaders()
Response.Clear()
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Response.AddHeader("Content-Disposition", "attachment;filename=" + sNameOnly)
Response.WriteFile(sFileName)
Note, the "sNameOnly" and "sFileName" variables are strings that are elswhere set to be the name of the file and the full (server-side) pathname, respectively
Thanks
Lowel