Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > NodeGUID vs. NodeID as a stable anchor to documents View modes: 
User avatar
Member
Member
eagleag - 4/5/2011 5:01:09 AM
   
NodeGUID vs. NodeID as a stable anchor to documents
Hi,
Just need clarification.
Had a system where i was storing NodeId for linking back to documents but noticed on export and imports the NodeId changes (due to is column type).

I need a stable anchor to documents that will never change.
I want to use NodeGUID but want to be sure this is the best way to do it?

Thanks
pretty urgent :)

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 4/5/2011 8:42:53 AM
   
RE:NodeGUID vs. NodeID as a stable anchor to documents
Hi,

here is the info for the readers of this thread.

Using the NodeGUID is the best way for this purpose. NodeGUID is used in the Import/Export module and is not changed, when the site is imported in some other installation.

To work with GUID in the code behind it is suggested to use ValidationHelper.GetGUID() method for its validation.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
eagleag - 4/5/2011 9:30:37 AM
   
RE:NodeGUID vs. NodeID as a stable anchor to documents
THANK YOU VERY MUCH :)