Forum Discussion
Report viewer losing parameters when clicking 'back'
- Anonymous1 year ago
Hi Mr_4el ,
Thank you for the followup. In modern SSRS versions, when using the browser Back button, the report content may appear correct due to browser caching, but the parameter panel resets to default values.
This is caused by the CacheControl: no-cache header, which prevents SSRS from retaining the previous parameter state.
This behaviour is by design and differs from SSRS 2008, which cached both the report content and parameters.
We can try, a custom "Back" action in Report B that navigates to Report A with the original parameters or use URL parameters or session storage (if using a wrapper app) to retain parameter values.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
B Manikanteswara Reddy
Hi Mr_4el
In newer SSRS versions (after 2008), when you use the browser's Back button after navigating to another report, the original report reloads with default parameters instead of keeping the previous ones. This happens because modern SSRS doesn't cache report state like SSRS 2008 did. To fix this, use a custom "Go to Report A" action in Report B and pass the parameters explicitly—avoid using the browser back button.
This solution is not suitable.
Currently, when switching back in the browser, the contents of the report are displayed taking into account the previously selected parameters (the report script is not executed in this case), and the page is being re-rendered. The parameters become the default. And in the page properties, in the "Response Headers", the "Cache-Control" property has the value "no-cache".