Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP DLL instantiation wiping out .NET Session() variabl
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00707503
Message ID:
00707833
Views:
32
If you are using webforms, be aware that on a postback you have in effect a brand new instance of your form so you will need to make good use of the if not ispostback property. so if you init x = 'bob' in/from the load event then set x = 'fred' and then caused a postback by clicking something on the page now x = 'bob' again because the load event has fired again...
If you are NOT using webforms, I'll shut up now. :)

>David,
>
>If Session is supposed to be preserved, I have no idea what could be going on unless it concerns the rights attributed to the VFP dll. I'm using Session, not ViewState, so, as I thought, something else is going wrong.
>
>The frustrating part is that it does not consistently happen - 8 or 9 times out of 10 it will work.
>
>I know early on I had a problem running some of the C#/VFP interfaces. Under what secuirty context should the VFP dll be running?
>
>TIA,
>Doug
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform