Well when a user opens the fourth panel, before you hide each of the other
ones, store thier visible properties in a session variable, which is done
like this in VB.NET:
'Store visible properties for Panel1, Panel2 and Panel3
Session.Item("Panel1Open") = Panel1.Visible
Session.Item("Panel2Open") = Panel2.Visible
Session.Item("Panel3Open") = Panel3.Visible
This will create the session variables if they do not exist. So if you add
that code before hiding the open panels and opening the fourth, you will have
thier state stored in sesion. Then all you need to do to you code for the
cancel button on panel 4 (To return the user to the three panels they were
looking at) would be something like this.
'Restore visible properties for Panel1, Panel2 and Panel3
Panel1.Visible = Session.Item("Panel1Open")
Panel2.Visible = Session.Item("Panel2Open")
Panel3.Visible = Session.Item("Panel3Open")
This will then only show the panels which were open before the fourth was
open.
- B
"Sandy" wrote:
Thanks for replying, Brian.
Can you give me an example of how I would do that?
Sandy
"Brian Farnhill (MCP VB.NET)" wrote:
Hey Sandy,
Perhaps you could store the informaiton in session variables. That way the
user can go wherever on the site within the same session, and when they
return you can use the session variables to open the relevant panels based on
what is in the session variables.
- B
"Sandy" wrote:
Hello -
There is a possibility of having Panel1 displayed, Panel1 and Panel 2
displayed or Panel1, Panel2 and Panel3 displayed.
When a user clicks on a Button, those Panels, if visible, are set to false.
Another panel, Panel4, is opened. There is a close button on Panel4 if a
user changes their mind.
I need this program to remember which panels were opened in the beginning,
to return the user to where they were if they click the "Close" button.
What's the best way of doing that?
--
Sandy