开发者

history.go(-1) function not refreshing server side controls

I am using a dropdown, a devexpress grid view and a button on my page.

My gropdown contains the months in the format MM/YYYY, and on dropdown's selection change the data binds in the grid view.

the functionality of button is to go on previous page as same as back button of browser.

Now, my prob is that if i select any month and then select another month, the data changes. but now when i click on back button having onclick ="history.go(-1)", changes the data on the grid view but the month in the dropdown remains the same.

For example:

Suppose, first i have month selected as 02/2010 At this time the data in grid view is for exapmle 01234

now when i select month 03/2010 the data in grid changes to 56789

now when i click on back button, then data in grid changes to 01234 but the month in dropdown remains to 03/2010.

Please help me for this..

开发者_开发问答

Thanks in advance for all who will give solution for this.


Server side web page should have a page-timeout. so that browser will get contents back from the web server again instead of showing it from history. Or browser might show the page as content Expired, please refresh.


The browser is caching your page. You should add a session tracker or something to your page and LINK back, (aka not JS)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜