protected void btnOKExport_Click(object sender, EventArgs e) { string filename = HttpUtility.UrlEncode(this.txtFileNameExport.Text); filename = filename.Replace("+", "%20"); this.eExporter.DownloadName = filename; this.eExporter.DataExportMode = (DataExportMode)Enum.Parse(typeof(DataExportMode), this.rdoExportTypeExport.SelectedValue); this.eExporter.WorkbookFormat = (Infragistics.Excel.WorkbookFormat)Enum.Parse(typeof(Infragistics.Excel.WorkbookFormat), "Excel97To2003"); bool singleGridPerSheet = false; this.eExporter.Export(singleGridPerSheet, this.webDGExport); } I want to hide the modalpopup extender after the above button click event which is not happening. Please help.
The response is used to send the document to the browser to either display or download. If you do a custom export, the response is not touched, and it is up to you to save the exported grid.
-Dave
I have the same issue. After calling .Export() on the ExcelExporter, the page response is never sent to the client. there is no code execution after the call to .Export(). I have verified that the Page_LoadComplete() event does not fire.
Hello Bebu,
Please let me know if you still need assistance with the matter.
Hi Bebu,
Could you please clarify your question - how exactly you are using ModalPopupExtender? Anyway, you could try to call its Hide method after the line exporting the grid.