Information générale
Titre:
Using ASP.Net Session object in COM component
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement