hello, i'm trying to make a simple widget it's a page title widget but in widget designer, user can choose to override the page title with the parent page title. so i'm make a drop down list in designer and tried to populate it with parent page. and it will return the page Guid.
i have tried using this
SiteMapNode currentNode = SiteMap.CurrentNode
and also this
var actualNode = SiteMapBase.GetActualCurrentNode();
but they all null. any suggestion how can i achieve this? some code snippet would be good.