ASP .NET Panels/Back Button Problem! NEED HELP ASAP!

Discussion in 'ASP .Net' started by Chad A. Beckner, Jun 17, 2004.

  1. Hey all,

    I have a ASP .NET webpage which contains several panels. When I click a
    button on the first "panel" page, it postsback to the same page, and I
    switch the visibility of the panels accordingly. BUT, when I click the back
    button, the same panel shows up, not the "previous" panel. I need to fix
    this ASAP! I have tried expiring the page, but then I seem to lose
    viewstate on the previous page (panel). How can I do this, I see a lot of
    sites saying to use panels, but this is a major problem!

    Thanks for any help!

    Chad A. Beckner, Jun 17, 2004
    1. Advertisements

  2. Chad A. Beckner

    EMW Guest

    I have a simular thing, but no problems.

    sub Button1(....) handles
    'this button is on panel2
    panel1.visible = true

    end sub

    sub Button2(...) handles
    'this button is on panel1

    end sub

    EMW, Jun 17, 2004
    1. Advertisements

  3. But what happens when user clicks the "Back" button of the browser? Does
    the correct panels show up? Is there anything special that I need in the
    Page_Load event (or other event?)

    Chad A. Beckner, Jun 18, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.