cancel
Showing results for 
Search instead for 
Did you mean: 

CrystalReportViewer stops web form and controls postback firing

0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Answers (1)

Answers (1)

0 Kudos

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.