Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
WebExcelExporter Button Click Event To Hide ModalPopupExtender
posted




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.

Parents
No Data
Reply
  • 37874
    posted

    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.

Children