More in this section

Forums / Developing with Sitefinity / Trouble Getting PageId form ImageSelector dialog

Trouble Getting PageId form ImageSelector dialog

1 posts, 0 answered
  1. Tim
    Tim avatar
    10 posts
    09 Nov 2007
    24 May 2012
    Link to this post
    I made MediaContentSelectorView.aspx use my external template so that I could
    do some filtering of the image libraries based on current page.

    Trouble is... from the OnPageLoad inside the popup dialog control, I can't seem to get the pageid of the page that popped it up.

    For a control directly on the page, I use  SiteMapNode currentNode = SiteMap.CurrentNode;  and get the ID from there.  In the dialog, currentNode returns  NULL.

    How do I get the CurrentPageId from within the Image selector dialog ?

1 posts, 0 answered