更新时间:2023-02-24 12:34:04
ASP.NET视图状态已被禁用。报表查看器控件需要的ViewState启用。如果您运行从视图报表查看器。
"ASP.NET ViewState has been disabled. The Report Viewer control requires that ViewState be enabled." if you run the report viewer from a view.
但你可以在同一个项目中运行web表单页面。丑陋,但它的作品。
But you can run a webforms page in the same project. Ugly, but it works.
你可以试试这个太:http://weblogs.asp.net/rajbk/archive/2006/03/02/How-to-render-client-report-definition-files-_28002E00_rdlc_2900_-directly-to-the-Response-stream-without-$p$pview.aspx