CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: history.go(-1)

  1. #1
    Join Date
    Sep 2004
    Posts
    80

    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.
    Last edited by doomsday123; June 21st, 2006 at 10:52 AM.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: history.go(-1)

    After you click the go back button, click refresh. What happens? Does it display correctly or remain incorrect?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Sep 2004
    Posts
    80

    Re: history.go(-1)

    Yes, it displays the correct info when I refresh the page.

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: history.go(-1)

    Quote Originally Posted by doomsday123
    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?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Sep 2004
    Posts
    80

    Re: history.go(-1)

    Dont have access to the code right now. Do the variables keep their value on a history.go(-1)?

  6. #6
    Join Date
    May 2002
    Posts
    10,943

    Re: history.go(-1)

    Quote Originally Posted by doomsday123
    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.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured