Page 1 of 1

Ajax and the Back button

Posted: Tue Dec 09, 2008 4:06 pm
by heinscott
Quick question...
I have created a custom pool builder in my store. In it, I am updating querystrings before doing partial postbacks in order to keep variables straight, like temporary basket id, the step I am on, etc.
The problem I am having now is this...
After the temp basket is added to the real shopping cart, if the customer hits the "back" button, the ajax page starts over from the first step (which wouldn't be bad), but stalls out the first time a new item is selected, due to a uninitialized object.
Now, this wouldn't be hard if somehow I could update client browser history to show the last step I left off on, or, if asp .net could recognize that the page was navigated to via the back button.
I am completely inexperienced in this particular problem. I just thought I would post it here in case anyone has had (and hopefully fixed) difficulties of this sort.
Here is a link to one of my pool builder pages. http://www.poolgeek.com/CategoryGrid2.a ... goryId=818
Thanks for any help you can give me!

Scott

Re: Ajax and the Back button

Posted: Tue Dec 09, 2008 6:31 pm
by jmestep
You could do like I saw on a government website for defense contractors -- Warnings about Don't Hit the back Button!!
I don't know if it will help, but I thought I read that .net 3.5 handles the back button better for Ajax, or maybe I read that.

Re: Ajax and the Back button

Posted: Wed Dec 10, 2008 8:30 am
by heinscott
With 3.5 and extensions, there is an option for scriptmanger to allow history, essentially giving you the option to create history points that will allow for the page left off on to be the current page when navigating back.
Short of changing to 3.5, though, I need to find a solution that will work for me...
Any ideas??

Re: Ajax and the Back button

Posted: Wed Dec 10, 2008 1:35 pm
by jmestep
Nope, unless Google. I thought you had switched to .net 3.5, but looking back, I see it was your dev site.