How to flip a panel's visiblity on postback?

capejoe

New Member
I have an asp.net panel control which I want to appear on every other page load for a user, so I thought I could just change the Visible property in the page_load like so:panel.Visible = !panel.Visible.However every time this runs the Visible has changed back to true. Is the state of the panel not maintained with viewstate?
 
Back
Top