我有一个 Telerik ReportViewer 和一个按钮。这是后面的代码:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ReportViewer1.Report = (Telerik.Reporting.Report)session["TelerikReportObject"];
ReportViewer1.DataBind();
}
protected void ButtonKillThenNavigate_Click(object sender, EventArgs e)
{
// Here I need some mechanism to kill the Report (if it is still being generated) so I can immediately navigate to another page without a delay.
// Now with my current code, a very noticeable delay exists before executing the redirection in the following line of code
Response.Redirect("Home.aspx");
}
如果没有办法杀死报告,我可以ReportViewer1.Dispose()
作为Response.Redirect("Home.aspx")
异步操作调用吗?如果我能做到这一点,我将能够立即导航到我的页面,而报告将随时处理。
检查下图: