Tuesday, June 3, 2008

Excel file download on MAC

In order to download the .xls file on MAC machine, we need to set following content type in the response object.

 

Response.AddHeader "Content-Disposition", "attachment;filename=" & strgroup & ".csv;"

 

Please note: “attachment;”