.NETGURU
Session state in a component
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngibuyspy' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Kevin White
Hi there,

How can I access session variables in one of the compnent vb files?

Thanks,
Kevin
Reply to this message...
 
    
Brian Bilbro (VIP)
Yes:

System.Web.HttpContext.Current.Session

HTHs,
Brian

----- Original Message -----
From: Kevin White
To: aspngibuyspy
Sent: Wednesday, July 24, 2002 1:22 PM
Subject: [aspngibuyspy] Session state in a component

Hi there,

How can I access session variables in one of the compnent vb files?

Thanks,

Kevin

| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Kevin White
Hi there,

Could you explain a bit more please?

In the configuration.vb file I would like to use x = session(“variablename”)
for example. Where does “System.Web.HttpContext.Current.Session” go?

Thanks
-----Original Message-----
From: Brian Bilbro [mailto:Click here to reveal e-mail address]
Sent: 24 July 2002 23:41
To: aspngibuyspy
Subject: [aspngibuyspy] Re: Session state in a component

Yes:

System.Web.HttpContext.Current.Session

HTHs,
Brian

----- Original Message -----
From: Kevin White <mailto:Click here to reveal e-mail address>
To: aspngibuyspy <mailto:Click here to reveal e-mail address>
Sent: Wednesday, July 24, 2002 1:22 PM
Subject: [aspngibuyspy] Session state in a component

Hi there,

How can I access session variables in one of the compnent vb files?

Thanks,
Kevin

| [aspngibuyspy] member Click here to reveal e-mail address <mailto:Click here to reveal e-mail address> YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
| [aspngibuyspy] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngibuyspy.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives
Reply to this message...
 
    
Brian Bilbro (VIP)
If your vb file is in a seperate project you'll need to add a reference =
to System.Web
after that you can do:

x =3D System.Web.HttpContext.Current.Session("variablename")

HTHs,
Brian

----- Original Message -----
From: "Kevin White" <Click here to reveal e-mail address>
To: Click here to reveal e-mail address
Sent: Thu, 25 Jul 2002 10:33:03 +0100
Subject: RE: [aspngibuyspy] Re: Session state in a component
[Original message clipped]

Sent: 24 July 2002 23:41
To: aspngibuyspy
Subject: [aspngibuyspy] Re: Session state in a component
[Original message clipped]

To: aspngibuyspy <mailto:Click here to reveal e-mail address>
Sent: Wednesday, July 24, 2002 1:22 PM
Subject: [aspngibuyspy] Session state in a component
[Original message clipped]

Reply to this message...
 
 
System.Web.HttpContext




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification