on 04-20-2020 2:51 AM
My ASP.NET page and its controls don't fire PostBack When I add a CrystalReportViewer to the page. I am using Crystal Report Version=13.0.4000.0 with VS 2019.
Added CR for VS tag.
You must load the CR parts into the Page_init section, not the Page_Load as it used to be.
Use Fiddler to see what your page is doing.
Lots of posts on this subject, try searching first:
https://blogs.sap.com/2011/04/25/why-should-i-store-reports-object-in-httpsession/
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Don!
Assigning the session to the CR report data source solves the problem, but it produces another issue for me as the following: I have report A, B, C, and D, and all share the same ASP page and same CR report. But each has a different set of filters. So, when I run report A, and then when I go to report B, the report A data appears in report B. By the way, I arranged my reports filters on a button's click event.
So, I am looking for a method that is called after Page_Init(), so there I can clear the session (Session.Remove["BLReport"]). Let me know if you have a solution for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.