When does ObjectID get set?

Posts   
 
    
ADF1969
User
Posts: 37
Joined: 28-Mar-2006
# Posted on: 06-Jul-2006 08:53:56   

WHen does the ObjectID get set on my objects?

I have a main Entity, and a collection of "child" entities, and I add an entity to the "child collection" and none of the ObjectIDs are set.

I'm trying to figure out how to maintain "state" between postbacks to ensure that my "new" record I just added to the collection is the one I'm looking for, and I was going to use the ObjectID to accomplish that...

Thanks,

Andrew.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 06-Jul-2006 09:03:56   

Object ID is created at runtime when a new entity is instantiated.