Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Session Variable


Message #1 by R MALY GBIPS MIS <maly@m...> on Thu, 15 Aug 2002 10:31:57 +0100
Hi,
 
I am having a problem returning a session variable
I use the following code to assign the variable
Session.Contents("DepotID") = cboDepot.SelectedItem.Value

which assigns fine ( I can see it in the watch window)
but when on a separate page I go to retrieve the data using the following
code.

Session.Contents.Item("DepotID")

The data is "Nothing", when I try to use a watch window I get an error
stating "Unable to load International DLL: msvb7ui.dll"

I have used identical code in a different project and all is fine, I have
also checked that the Web.config file is the same.

Any ideas will be very welcome as deadlines loom :- (

R Maly BA(Hons), MCP, MCSD 

email : maly@m... 
    tel : 01473 277899 


 

Message #2 by "Philip Goatly" <philip.goatly@b...> on Thu, 15 Aug 2002 10:45:56 +0100
Hi there,

       I have only used Session variables as follows - but it seems to 
work


   Session("DataLocation") =3D SDataLocation

   SDataLocation =3D Session("DataLocation")

   What is Session.Contents etc. I have never used it.


Cheers, Phil   www.bolero.net
        

-----Original Message-----
From: R MALY GBIPS MIS [mailto:maly@m...]
Sent: 15 August 2002 10:32
To: ASP+
Subject: [aspx] Session Variable


Hi,

I am having a problem returning a session variable
I use the following code to assign the variable
Session.Contents("DepotID") =3D cboDepot.SelectedItem.Value

which assigns fine ( I can see it in the watch window)
but when on a separate page I go to retrieve the data using the 
following
code.

Session.Contents.Item("DepotID")

The data is "Nothing", when I try to use a watch window I get an error
stating "Unable to load International DLL: msvb7ui.dll"

I have used identical code in a different project and all is fine, I 
have
also checked that the Web.config file is the same.

Any ideas will be very welcome as deadlines loom :- (

R Maly BA(Hons), MCP, MCSD

email : maly@m...
    tel : 01473 277899





---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=3D1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=3D1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples. 

---

_____________________________________________________________________
This=20message=20has=20been=20checked=20for=20all=20known=20viruses=20by=20
the
MessageLabs=20Virus=20Scanning=20Service.
Message #3 by R MALY GBIPS MIS <maly@m...> on Thu, 15 Aug 2002 14:46:28 +0100
Further to this an error seems to be raised when I use
"Response.Redirect("Frameset.aspx")"
 
The error raised is "Thread was being aborted." I am not creating a thread
so I can only assume that this is raised by IIS.  The new page is being
opened.
 
Any ideas?
-----Original Message-----
From: R MALY GBIPS MIS 
Sent: 15 August 2002 10:32
To: 
Subject: Session Variable


Hi,
 
I am having a problem returning a session variable
I use the following code to assign the variable
Session.Contents("DepotID") = cboDepot.SelectedItem.Value

which assigns fine ( I can see it in the watch window)
but when on a separate page I go to retrieve the data using the following
code.

Session.Contents.Item("DepotID")

The data is "Nothing", when I try to use a watch window I get an error
stating "Unable to load International DLL: msvb7ui.dll"

I have used identical code in a different project and all is fine, I have
also checked that the Web.config file is the same.

Any ideas will be very welcome as deadlines loom :- (

R Maly BA(Hons), MCP, MCSD 

email : maly@m... 
    tel : 01473 277899 


 

Message #4 by "J Donahue" <jdonahue@f...> on Thu, 15 Aug 2002 15:04:46
Try this:

Session("DepotID")= cboDepot.SelectedItem.Value
and
myRetrievalVar = Session("DepotID")


> Hi,
 
I am having a problem returning a session variable
I use the following code to assign the variable
Session.Contents("DepotID") = cboDepot.SelectedItem.Value

which assigns fine ( I can see it in the watch window)
but when on a separate page I go to retrieve the data using the following
code.

Session.Contents.Item("DepotID")

The data is "Nothing", when I try to use a watch window I get an error
stating "Unable to load International DLL: msvb7ui.dll"

I have used identical code in a different project and all is fine, I have
also checked that the Web.config file is the same.

Any ideas will be very welcome as deadlines loom :- (

R Maly BA(Hons), MCP, MCSD 

email : maly@m... 
    tel : 01473 277899 


 

Message #5 by "Mark Phillips" <webmaster@d...> on Thu, 15 Aug 2002 14:58:10 +0100
I haven't been following this closely, but would it have anything to do
with:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q178037

-----Original Message-----
From: R MALY GBIPS MIS [mailto:maly@m...]
Sent: 15 August 2002 14:46
To: ASP+
Subject: [aspx] FW: Session Variable


Further to this an error seems to be raised when I use
"Response.Redirect("Frameset.aspx")"

The error raised is "Thread was being aborted." I am not creating a thread
so I can only assume that this is raised by IIS.  The new page is being
opened.

Any ideas?
-----Original Message-----
From: R MALY GBIPS MIS
Sent: 15 August 2002 10:32
To:
Subject: Session Variable


Hi,

I am having a problem returning a session variable
I use the following code to assign the variable
Session.Contents("DepotID") = cboDepot.SelectedItem.Value

which assigns fine ( I can see it in the watch window)
but when on a separate page I go to retrieve the data using the following
code.

Session.Contents.Item("DepotID")

The data is "Nothing", when I try to use a watch window I get an error
stating "Unable to load International DLL: msvb7ui.dll"

I have used identical code in a different project and all is fine, I have
also checked that the Web.config file is the same.

Any ideas will be very welcome as deadlines loom :- (

R Maly BA(Hons), MCP, MCSD

email : maly@m...
    tel : 01473 277899





---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.

---



Message #6 by R MALY GBIPS MIS <maly@m...> on Thu, 15 Aug 2002 15:52:49 +0100
Thanks but no.  
I have also tried 
	Var = Session("DepotID")
but alas to no avail.


-----Original Message-----
From: Mark Phillips [mailto:webmaster@d...]
Sent: 15 August 2002 14:58
To: ASP+
Subject: [aspx] RE: FW: Session Variable


I haven't been following this closely, but would it have anything to do
with:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q178037

-----Original Message-----
From: R MALY GBIPS MIS [mailto:maly@m...]
Sent: 15 August 2002 14:46
To: ASP+
Subject: [aspx] FW: Session Variable


Further to this an error seems to be raised when I use
"Response.Redirect("Frameset.aspx")"

The error raised is "Thread was being aborted." I am not creating a thread
so I can only assume that this is raised by IIS.  The new page is being
opened.

Any ideas?
-----Original Message-----
From: R MALY GBIPS MIS
Sent: 15 August 2002 10:32
To:
Subject: Session Variable


Hi,

I am having a problem returning a session variable
I use the following code to assign the variable
Session.Contents("DepotID") = cboDepot.SelectedItem.Value

which assigns fine ( I can see it in the watch window)
but when on a separate page I go to retrieve the data using the following
code.

Session.Contents.Item("DepotID")

The data is "Nothing", when I try to use a watch window I get an error
stating "Unable to load International DLL: msvb7ui.dll"

I have used identical code in a different project and all is fine, I have
also checked that the Web.config file is the same.

Any ideas will be very welcome as deadlines loom :- (

R Maly BA(Hons), MCP, MCSD

email : maly@m...
    tel : 01473 277899





---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.

---




---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces 
for developers who are already familiar with using ASP.NET. 
There is no trivial introductory material or useless .NET 
hype and the presentation of the namespaces, in an easy-to use 
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes, 
giving you those real-world tips that the documentation doesn't 
offer, and demonstrating complex techniques with simple 
examples.  

---

  Return to Index