history.go(-1)
I have an aspx page that displays data depending on your search criteria. When you click search it does a postback and hides all the search criteria controls and displays data.
What I am trying to do is have a button that preforms a history.go(-1) go back to search criteria controls. For some reason when I click the button it goes back a page but it does not change the controls on the page. it still displays the data and does not show the input boxes for the search criterea.
It was working in a previous version of the software which was running on .net v1.1 and on IIS 5 but after converting to .net 2.0 and IIS6 it no longer works.
Could someone help me out to get this working. Thanks.
# 3 Re: history.go(-1)
Yes, it displays the correct info when I refresh the page.
Sounds to me that the ASP needs to recommunicate with the server in order to re-work things. My guess is that you will have to free variables or something.
Can you post the code?
# 5 Re: history.go(-1)
Dont have access to the code right now. Do the variables keep their value on a history.go(-1)?
Well, being ASPX, it could have session variables and that can only be changed by a refresh from the server.