More in this section
Forums / Developing with Sitefinity / Trouble Getting PageId form ImageSelector dialog

Trouble Getting PageId form ImageSelector dialog

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
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