Be careful which "option" you use as you could come up with unexpected results.
CMSContext.CurrentDocument.Parent
will return the parent of the document you are navigating to.
Eval("NodeParentID")Will return the parent ID of the document being rendered at that time, most likely used in a transformation.