Copied to clipboard

Flag this post as spam?

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


  • Peter Schermers 112 posts 134 karma points
    Sep 03, 2012 @ 16:01
    Peter Schermers
    0

    How to use 'getProperty' with 'Embedded Content'?

    I got these lines of code:

    @{
    var myNode = @Model.NodeById(1080)
    }

    @foreach(dynamic item in myNode.GetProperty("subfotos1").Value)

    {

    some content

    }

    Why can't I use 'getProperty'? I know I could just use 'myNode.subfotos1', but I need to use 'getProperty' for this.

    What am I doing wrong?

Please Sign in or register to post replies

Write your reply to:

Draft