hi this is kavita
I m working on ajaxenabled websites.I take a gridview and show sme data and used paging.my gridview is in updatepanel.when I go next or previous page it work fine but using internet explore back and forward button nothing is displayed.I know it is due to update panel that is not refresh the page while paging but what is it solution please tell me?
thanks
Loading
Munir ShaikhPosted Aug 21, 2007, 4:39 AM
It is possible but when you called browser next and back button it has to reload page, at every page load you should have databind function which will bind to datagrid / gridview and for paging you can call javascript function in page load like Attribute.Add("Function name","event name");
That's it,
Hope this will solve your issue,
Regards,
>>Munnamax
kavitaPosted Aug 20, 2007, 3:28 AM
hiding toolbar is not a solution .is it not possible tgat when user click back button of IE we call a server side function.
please given me suggestion.
thanks
Munir ShaikhPosted Aug 20, 2007, 2:00 AM
Initially it seems that behavour of the browser is perfect, since browsers Back & Next means History.go(-1) or History.go(+1) This means that to have your paging work on the back and next button of the browser you have to do custom paging and pass page number as querystring like classical asp way. Best way to use a javascript and disable Back & Next or just open your page in new popup window where there will be no toolbar and address bar
Regards,
>>Munnamax