Welcome Guest Search | Active Topics | Sign In | Register

Callback panel redirect / back issue Options
Ronald
Posted: Friday, January 3, 2014 9:22:50 AM
Rank: Member
Groups: Member

Joined: 8/21/2008
Posts: 24
Callback issue

I wonder, if there is a solution for this problem. I have a page with drop-down control and a callback panel. In the drop-down control, the user can select a year and with this selection, I change the data in a grid inside the callback panel. So far, everything works fine.
Additional there is a button on the page (outside the callback panel and it is no callback-trigger!) which calls another aspx-page by response.redirect (..). If the user returns to my page with the browsers back button, the last selected value in the drop-down control will be show, but not the related data in the grid on the callback panel.
As far as I can see, there is no event fired to update the callback panel, after returning.
Do you know a solution, to show the changed callback content after returning from another page?

Thank you for your help!

eo_support
Posted: Friday, January 3, 2014 10:30:23 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You should probably disable cache for the first page. When you use the browser's back button, it's almost for certain that you won't get any post back events (most server events such as ListBox or Button event are triggered on post back) because the browser will never do a post back request on "back" button. In fact most of the time the browser doesn't even send any request to the server at all --- it simply load the page from its cache. Because there is no request sent to your server at all, there is no chance for you to run any server side code. So the first step would be disabling cache to force the browser to at least send a get to your server. Once your server side is called, you can then figure out some mechanism to save/restore the page state.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.