I have a label control, which is wrapped up by
<asp:UpdatePanel><ContentPlate> etc.
The Text property of the label is set upon a button click.
This works fine. But if I navigate to another page and then come back
to this page through the browser's back button, the text value of this
label disappears!
Whereas other controls on the same page which are not wrapped up in
UpdatePanel and are updated in a similar fashion do not lose their
updated value upon backing up through the browser's back button.
I know I can remove the ajax functionality to get rid of the problem,
but I sorta like to have the ajax functionality. Any workaround?
Thanks.
Braulio Diez - 30 Oct 2007 14:07 GMT
Scott and Nikhil have a workaround that would work for your case:
http://weblogs.asp.net/scottgu/archive/2006/09/14/Tip_2F00_Trick_3A00_-Enabling-
Back_2F00_Forward_2D00_Button-Support-for-ASP.NET-AJAX-UpdatePanel.aspx
/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------
> I have a label control, which is wrapped up by
> <asp:UpdatePanel><ContentPlate> etc.
[quoted text clipped - 12 lines]
> but I sorta like to have the ajax functionality. Any workaround?
> Thanks.
gnewsgroup - 31 Oct 2007 15:35 GMT
> Scott and Nikhil have a workaround that would work for your case:
>
[quoted text clipped - 22 lines]
> > but I sorta like to have the ajax functionality. Any workaround?
> > Thanks.
Thanks a lot. That does sound like a perfect solution exactly to this
problem.