Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using ASP.Net Session object in COM component
Message
 
À
08/05/2003 17:16:44
Information générale
Forum:
ASP.NET
Catégorie:
Migration
Divers
Thread ID:
00786499
Message ID:
00791000
Vues:
15
Update on this: the error I was getting on the ASP Session object within ASP.NET ("invalid index...") apparently has been fixed when using the version 1.1 of the framework. Maybe this is your problem too?
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform