I'm currently creating a webpart for sharepoint in visual studio 2010. i use this code in a button event.
wb.Save(HttpContext.Current.Response, "MonthlyProgressReport-" + stringMonths.ToString("MMMM") + stringMonths.ToString("yyy") + ".xlsx", ContentDisposition.Attachment, ((SaveOptions)new XlsSaveOptions((SaveFormat.Xlsx))));
//wb.Save("report.xlsx", SaveType.OpenInBrowser, FileFormatType.Excel3, Response);
so after pressing the button, it will pop out a dialog box to allow me to save the workbook to the local drive. the problem is, if i want to save the workbook again by pressing the button, the dialog box doesn't pop up again. Only after i refresh the page, i'm able to press the button to generate the dialog box again. is there a way for me to allow a user to press the button multiple time to generate the dialogbox to save?