RE: Return user to original view

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • RE: Return user to original view
    ... > Hey Sandy, ... > Perhaps you could store the informaiton in session variables. ... >> When a user clicks on a Button, those Panels, if visible, are set to false. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Return user to original view
    ... Perhaps you could store the informaiton in session variables. ... "Sandy" wrote: ... > When a user clicks on a Button, those Panels, if visible, are set to false. ... > Another panel, Panel4, is opened. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: I Cant See Entire Menue In "All Programs"
    ... When I hit the ... >'Start' button and then select 'All Programs', the menu opens up fine, but ... >it seems that the panels have gotten wider for some reason. ... The length of those panels is controlled by the largest entries so try ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Path Finder app
    ... you don't need to have all three panels plus the two panels in the ... file in its folder always opens the Finder. ... upgraded on my home machine. ... Victor Eijkhout -- eijkhout at tacc utexas edu ...
    (comp.sys.mac.system)