http 応答で Excel ファイルを送信しています。[開く] をクリックすると、IE はファイル名の末尾に [1] を追加します。「保存」ファイルではそうではありません。それを修正する方法はありますか?
HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.AddHeader("content-disposition", "attachment;filename=" + filename+".xlsx");
response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
response.ContentEncoding = System.Text.Encoding.Unicode;
response.BinaryWrite(pkg.GetAsByteArray()); //pkg is ExcelPackage
response.End();