PDA

View Full Version : ASP Problem with sorting order toggling



wuzzi2ya
July 8th, 2008, 12:52 PM
I have one column with a list loaded by descending posted date, then a corresponding category column. Both are able to be toggled. This is all done with AJAX.

Here is the problem:
When selecting a story from the category column, this takes you to another page. I have a back button to return within the AJAX that works fine, yet while on the story page and selecting the browser return button the order has been toggled to the ascending posted date and so on and so on... I know I need to add a session, yet I am a little held up on how to go about this. Any assistance would be awesome. Oh yeah this seems to only be happening in IE and Safari (all versions), yet works fine in FF...

<%
Session("azza") = "PostDate"
Session("sort by") = "Gallery"
%>

This is what I am using at the moment. I s there something that needs to be added or is there a better solution all together?

Thanks in advance...