Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ASP.Net Session object in COM component
Message
De
08/05/2003 17:16:44
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Migration
Titre:
Using ASP.Net Session object in COM component
Divers
Thread ID:
00786499
Message ID:
00786499
Vues:
68
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform