Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Survival of objects in .NET?!?!!?
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Survival of objects in .NET?!?!!?
Miscellaneous
Thread ID:
00728701
Message ID:
00728701
Views:
54
Hi, folks!

I’m about starting to work with ASP.NET using VFP COM objects and VB.NET – and I have a problem <s>!

Here some information about the circumstances:
- I have a page “DataEntry”, which uses a VFP COM object as business object (BO).
- To rescue my COM object from request to request I use the SessionState.Add(“MyBo_12345”, oBo) to save the object reference at the end of first request and SessionState.Item(“MyBo_12345”) recall it at the beginning of the second request etc.
- BTW: “_12345” is the instance id of my Bo!
- That works fine if I don’t leave the “DataEntry” form.
- But if any error occurs, e.g. oBo.Save fails, I want to show an error page and then I want to go back to the “DataEntry” form – that’s easy…
- …but I want to continue my work with the same instance of my oBo which failed in the oBo.Save method.
- My idea was transfering the SessionState key of my oBo (called “MyBo_12345”) from “DataEntry” form to the error page and from the error page to the “DataEntry” form to tell the “DataEntry” form “work with this existing Bo instance”!

Now the question: How can I make this work?
I tried to deal with Response.Redirect but no parameter transport is possible.
I tried to deal with Server.Transfer but it seems the call stack grows and grows with each roundtrip.

What is a common solution for my problem? Where can I get information or hints?

And btw: What is the meaning of the 2nd parameter of Response.Redirect and Server.Transfer, the help file description doesn’t gives me any idea – may be there is the solution wrapped?

TIA!
SeBaFlu
Next
Reply
Map
View

Click here to load this message in the networking platform