-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Prasanna_kakanoor
Message 3 in Discussion

Hi,

 You have to use HttpContext for accessing session object in the class file.  

Here is the sample code for accessing the session variable in vb class file

    Public Function CallSession() As String
        Dim Iint As Integer
        Iint = System.Web.HttpContext.Current.Session("Session_Varible1")
    End Function

Note : Take a reference for the System.Web.dll file

 Prasanna K L
 Sr. Software Engineer
[MCAD(CM) | MCSD.NET(Early Achiever)]

 ZapApp India Private Limited

  Level G & 1, Explorer Building, 
  International TechPark, Whitefield Road, 
  Bangalore - 560 066. INDIA
  91-80- 5115 6050 extn. 4061 (phone)
  91-80- 841 1858 (fax)
  [EMAIL PROTECTED]

-----Original Message-----
From: bcsanthosh [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 21, 2003 11:46 AM
To: BDOTNET
Subject: Accessing Session value in a class



New Message on BDOTNET


Accessing Session value in a class
Reply

�
Reply to Sender ��Recommend 
Message 1 in Discussion 

From: bcsanthosh 

�Hi All,
���� I would like to know how to access a session value in a user calss file, the 
scenario is I have a general.vb file which has all general methods used across the 
pages, One of the function in general.vb is accessing a session value, but either 
session or any of the server objects is recognized in this page. I am sure I have to 
import some system class, but I am not sure of which class to import. Any help of this 
is appreciated.
�
Regards,
San


View other groups in this category. 


Also on MSN:
Start Chatting�|�Listen to Music�|�House & Home�|�Try Online Dating�|�Daily Horoscopes 

Passport Member Services. 
For other questions or feedback, go to our Contact Us page. 

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list. 
Remove my e-mail address from BDOTNET. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to