Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP DLL instantiation wiping out .NET Session() variabl
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00707096
Message ID:
00708662
Vues:
16
I would not answer your questions, just will propose you some workarounds.
1. Instead of using Session and Response.Redirect, why not use the Viewstate and Server.Transfer? Yes I know that viewstate is not encoded hardly and travels back and forth to the client browser, but you can encode the userid, before adding it to the viewstate. Note that when you use Server.Transfer you may have access to properties of previous webform from the current one, this way preserving the USERID. (You should add a property that will get and set the USERID from/to the viewstate for each of your webforms.)

2. What about (re)adding USERID to session object, just after the assign of VFPCOM_RCW instance to null e.g.
string usersig = Session["USERID"].ToString();
Pricer VFPPricer = new Pricer();
decimal YourPrice = VFPPricer.GetPrice(usersig, quantity, color);
VFPPricer = null;
Session.Add("USERID", usersig);
cmdSave.Enabled = true;
HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform