view_report(); //gets records from database. try { Rpt.ExportToHttpResponse(ExportFormatType.Excel, Response, true, "Summary Report"); } catch (Exception ex) { Console.WriteLine(ex.Message); ex = null; } finally { Response.Redirect("~/MessagePage.aspx",false); }
Response.Redirect("~/MessagePage.aspx", false);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)