Hi,
I have a web page in which I use a couple of panels to control visibility of sections of the page. EnableViewstate is set to false in the page's master page.
If, on the first visit to the page, PanelA is visible and PanelB is hidden, then I swap this in a postback event, I get the expected result - i.e. PanelB is now the visible one. So far so good. However, if I now hit F5 to refresh the page, I find that PanelA remains hidden and PanelB remains visible.
Why doesn't the page go back to its initial default state? Even more puzzling, if I put a breakpoint in the Page_Load even, I find that, upon pressing F5, the Visible property is set as I would expect, back in the default state, with PanelA.Visible=true and PanelB.Visible=false. Yet PanelA remains hidden and PanelB still appears on the screen.
Does anyone have any idea what I'm missing?
Kind wishes ~ Patrick