Advertisement

12.07.2007 at 12:09AM PST, ID: 23008118
[x]
Attachment Details

How do I Save Session Variables using master pages in VS 2005?

Asked by kmoloney in Active Server Pages (ASP), Programming for ASP.NET, SQL Server 2005

Tags: session, master, page, variable

We have the skeleton of a website with one master page and various aspx forms.  The master page contains <a href> tags to navigate around the site, each of which have a bunch of textboxes and other server controls.

We need to allow the user to navigate back and forth between pages (not all will be visited), enter data, and then click a button that will fire a process that saves this data to a database consisting of multiple tables.  The best way to think of what we are looking for is the Tab Control, where data can be entered, edited, and will persist, between tabs (our pages, in this analogy) before the data is stored.

We can't use "Save" buttons on each form because we need the same GUID (uniqueidentifier) to tie tables together.

I figured on using session variables to store the data until the data was posted to the database.  If they need to go back to the page, the session variable would re-populate the form.

The problem is, after a user has entered data in one page, navigating to another page using the master page links doesn't fire off any events that I can use to store the values in session variables.  So, without having to use a temporary database of some sort, how do I get these values into these session variables?  NOTE that it is quite possible that multiple users could be using the site at the same time.

Thanks!Start Free Trial
 
Loading Advertisement...
 
[+][-]12.07.2007 at 01:35AM PST, ID: 20426300

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 06:47AM PST, ID: 20427675

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Active Server Pages (ASP), Programming for ASP.NET, SQL Server 2005
Tags: session, master, page, variable
Sign Up Now!
Solution Provided By: Mortaza_doulaty
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.07.2007 at 06:53AM PST, ID: 20427724

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 07:00AM PST, ID: 20427804

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 07:01AM PST, ID: 20427811

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 07:08AM PST, ID: 20427878

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 07:09AM PST, ID: 20427886

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 07:18AM PST, ID: 20427966

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 08:38AM PST, ID: 20428713

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 06:58PM PST, ID: 20432792

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 09:35PM PST, ID: 20433190

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 09:39PM PST, ID: 20433196

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.07.2007 at 11:12PM PST, ID: 20433323

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 05:56AM PST, ID: 20441289

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.10.2007 at 11:36AM PST, ID: 20444371

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.12.2007 at 04:59AM PST, ID: 20456685

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.15.2007 at 02:54PM PST, ID: 20479056

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.15.2007 at 11:21PM PST, ID: 20479950

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.18.2007 at 05:21PM PST, ID: 20496957

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628