More in this section

Forums / Developing with Sitefinity / PageId for current page

PageId for current page

3 posts, 0 answered
  1. OC
    OC avatar
    129 posts
    Registered:
    17 Nov 2004
    15 Jun 2012
    Link to this post
    I need to get the id of the current sitefinity page from within a widget programmatically.
    How can I do this?
  2. MB
    MB avatar
    302 posts
    Registered:
    09 Jan 2005
    15 Jun 2012
    Link to this post
    Try:
    (Guid) Telerik.Sitefinity.Web.SiteMapBase.GetActualCurrentNode().Id
  3. Nicolas
    Nicolas avatar
    156 posts
    Registered:
    19 Jan 2011
    15 Jun 2012
    Link to this post
    Hi,
    new Guid(SiteMapBase.GetCurrentProvider().CurrentNode.Key);

    Regards,
    Nicolas
3 posts, 0 answered