473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Return user to original view

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
Nov 19 '05 #1
3 1177
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

Nov 19 '05 #2
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

Nov 19 '05 #3
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

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: fig000 | last post by:
Hi, I'm relatively new to Javascript so please bear with me on what might sound like silly questions. This is what I want to do: I'm working in classic asp (I have to for this project). I...
0
by: gregoryenelson | last post by:
I have a system where a user views info on a screen, then optionally goes into other screens where the database is altered -- user the returns to original screen. The original screen is...
6
by: Brad | last post by:
I have an sql query that has specific criteria (like state='PA' or state = 'NJ'...) and would like to be able to have the user specify the criteria dynamically either through the web or from...
5
by: Oak Hall | last post by:
I have files (pdf) that users can view. They are in a protected site. index.php's first function is to check the User Name and password. If they are ok, it answers the request. I want return a...
2
by: Chris | last post by:
I think I already know that the answer is that this can't be done, but I'll ask anyways. Suppose you want to use an RDBMS to store messages for a threaded message forum like usenet and then...
0
by: Mujdat Pakkan | last post by:
We have an interesting case where we want to use Postgres both as a database and a front end to a proprietary database. For the latter, we wrote functions that access the proprietary database. Then...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
15
by: Dan Holmes | last post by:
In one of the other threads it was mentioned that using return values from methods to indicated success/failure of the method should be replaced with throwing exceptions. Which would mean code...
2
by: casManG | last post by:
I am working on a small project that uses the treeview control in .net 2003. I have a tree view that I am sending to a sub in order to iterate through the nodes. Public Sub test (ByVal...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.