This is a migrated thread and some comments may be shown as answers.

Browser Back Button

1 Answer 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 11 Jun 2013, 06:54 PM

 Hi,

I have a masterPageA and a contentPageB

on the master page i have

<script type="text/javascript">
        function noBack() {
            window.history.forward();
        }
 
</script>
 
<body onload="noBack();" onprerender="if (event.persisted) noBack();" onunload="">

The content page is of the structure
<asp:MultiView
 <asp:View
  <asp:Button Button1
  <asp:Button Button2 
  <asp:Table
  <telerik:ReportViewer
 </asp:View
When the button1 or button2 is clicked the table and the reportviewer update to show the
correct report. The reportviewer reports have only graph. The table shows the data. 

User action.

1) Home page
2) load the content page (default view is report A which corresponds to button 1)
3) clicks on button2
4) clicks on browser back button...

What Happens,
It gets back to the reportA but only the table has data in the report viewer 
I  get an error message


Report is unavailable or session has expired.

Please, refresh the page.


How do I solve this.

Thanks

1 Answer, 1 is accepted

Sort by
0
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
KS
Top achievements
Rank 1
Share this question
or