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.
[720 byte] By [doomsday123] at [2007-11-19 22:56:44]
# 1 Re: history.go(-1)
After you click the go back button, click refresh. What happens? Does it display correctly or remain incorrect?
PeejAvery at 2007-11-8 0:40:21 >
# 2 Re: history.go(-1)
Yes, it displays the correct info when I refresh the page.
doomsday123 at 2007-11-8 0:41:23 >
# 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?
PeejAvery at 2007-11-8 0:42:22 >
# 4 Re: history.go(-1)
Dont have access to the code right now. Do the variables keep their value on a history.go(-1)?
doomsday123 at 2007-11-8 0:43:28 >
# 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.
PeejAvery at 2007-11-8 0:44:23 >