Asp.net水晶报道分页问题 [英] Asp.net crystal report pagination problem
本文介绍了Asp.net水晶报道分页问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行来自ASP.NET的Crystal Report
当我点击上一页,下一页,导出或打印按钮时 - ----全页每次点击都会重新加载。
如何避免重新加载页面?
谢谢,
Sohrab
我尝试过:
。
Hi,
I m running Crystal Report from ASP.NET
When I Click Previous, Next, Export or Print Button ----- Full Page Re-loads on every click.
How can i avoid Page Re-load?
Thanks,
Sohrab
What I have tried:
.
<pre lang="C#">
protected void Page_PreInit(object sender, EventArgs e)
{
ReportDocument crystalReport = new ReportDocument();
if (Session["report1"] == null)
{
crystalReport.Load(Server.MapPath("~/CrystalReports01.rpt"));
DataSet dsCustomers = GetData("select * from ACS");
crystalReport.SetDataSource(dsCustomers);
Session["report1"] = crystalReport;
}
else
{
crystalReport = (ReportDocument)Session["report1"];
}
CrystalReportViewer1.ReportSource = crystalReport;
}</pre>
推荐答案
您好,
您可以使用ajax更新面板,以避免页面重新加载。是这些按钮通常加载整个页面。
使用ajax的最佳方式。
Hi,
you can use ajax update panel to avoid page reloads.Yes those buttons generally loads entire page.
Best way to go with ajax.
这篇关于Asp.net水晶报道分页问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文