1

我有一个 MVC3 应用程序,我们正在使用 Telerik Reporting。Telerik 报表查看器必须托管在名为 ReportPage.aspx 的 ASPX 页面中。在其 PageLoad 方法中是根据查询字符串确定要显示哪个报表的逻辑。我想从 MVC 视图发起对报告的请求,并且我希望该视图保持存在,因此我需要一个弹出窗口或一个新的浏览器窗口来显示报告。用户关闭报告窗口后,原始窗口应完整显示。

我相信我可以满足上述要求,但这是复杂的。我需要将大量整数作为参数传递给 ReportPage.aspx,因此 querystring 对我不起作用。据我所知,我需要使用 JSON 对象和 WebMethod 来传递数组。但是我看不到WebMethod(即使它是ReportPage.aspx的方法)如何打开ReportPage.aspx。

有没有人看到一种方法来完成这项工作?

4

1 回答 1

0

If your asp.net web site and your MVC web site have access to a shared database then:

  1. Store dynamically the large array in the shared database and assign a unique report ID
  2. Pass in the query string the report ID only.
  3. In the aspx page load the report using the report ID
  4. Run a sql job every night that deletes the previous day report IDs. No need to store them forever
于 2012-05-24T22:05:53.067 回答