Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ahmed 16 posts 96 karma points
    Oct 28, 2013 @ 16:03
    Ahmed
    0

    getting the ID of the current page

    can i get the ID of the current page using umbraco API ??
    i am using v6.0

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 28, 2013 @ 16:14
    Dennis Aaen
    0

    Hi Ahmed.

    Have a look at this video here if you have access to Umbraco. If you don“t have access I can recommend to subscribe. There are many good videos about how to work with Umbraco:

    http://umbraco.tv/videos/developer/fundamentals/content-api/getting-the-current-umbraco-page-id/

    Hope this can help you.

    /Dennis

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Oct 28, 2013 @ 20:39
    Andy Butland
    0

    It depends on the context where you are looking to access this Ahmed.  In a surface controller for example you have the CurrentPage property.  

    Andy

  • Ahmed 16 posts 96 karma points
    Oct 29, 2013 @ 13:21
    Ahmed
    0

    no its an asp.net web user control ".ascx"

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Oct 29, 2013 @ 14:33
    Andy Butland
    0

    There's a couple of methods at least - see this link and this one.

    Andy

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies