Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ASP.Net Session object in COM component
Message
From
08/05/2003 17:16:44
 
 
To
All
General information
Forum:
ASP.NET
Category:
Migration
Title:
Using ASP.Net Session object in COM component
Miscellaneous
Thread ID:
00786499
Message ID:
00786499
Views:
69
I am trying to migrate the Web tier of our 3 tier application to ASP.Net. In our ASP pages we use the Session object and in our COM components, we use ObjectContext to get and use the ASP Session object. Is there a way to make modifications to the COM components so that they access the ASP.Net Session objects, so that as I migrate my Web tier to ASP.NET, my COM components will have access to the Session variables.
I am fairly new to .NET so hopefully this makes sense. Here is some code example:
COM component
strConnect = 'a typical conection string'
Set oObjectContext = GetObjectContext()
Set oASPsession = oObjectContext("Session")
Set oASPresp = oObjectContext("Response")
oASPsession("ConnectString") = strConnect

ASP.NET
'I want to be able access the Session variable "ConnectString"
Dim strConn As String
strConn = Session("ConnectString")


NOTE:
This is just an example
Next
Reply
Map
View

Click here to load this message in the networking platform