Does ReportViewer cache results?

I've created a multiview with two views.

The first view has two date parameter fields and a submit button. When the dates are populated and the button pressed, the ObjectDatasource gets the data from a stored procedure and populates the reportviewer in the second view.

After this first execution, the report keeps displaying the same data whatever dates I put in as parameters. The code for to get the data from the object data source is not being executed after the first time. And I ran Profiler..the stored procedure isn't being executed.

I have EnableCaching = False on the ObjectDataSource.

I would like the report to be populated with fresh data upon each execution.

Ideas

Thanks.




Answer this question

Does ReportViewer cache results?

  • NeilR

    Perfect. Thank you.

  • Upsilon

    The report does keep the data it needs internally, as you are seeing. To cause it to refresh the report snapshot, call ReportViewer.LocalReport.Refresh().
  • Does ReportViewer cache results?