Copied to clipboard

Flag this post as spam?

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


  • Sören Deger 726 posts 2833 karma points c-trib
    Feb 20, 2013 @ 16:41
    Sören Deger
    0

    Error with dynamic GetProperty in 4.11.4

    Hello,

    this code works:

    for(int i=0; i++; i<=3)
    {
    string url = "url1";
    <p>@Model.NodeById(Model.GetProperty(url).Value).Url</p>
    }

    But this code don't work:

    for(int i=0; i++; i<=3)
    {
    string url = String.Format("url{0}", i+1);
    <p>@Model.NodeById(Model.GetProperty(url).Value).Url</p>
    }

    Has anyone an idea to solve this?

    Best regards

    Sören

  • Sören Deger 726 posts 2833 karma points c-trib
    Feb 20, 2013 @ 16:48
    Sören Deger
    100

    It works now!

    Solution: One of my four content pickers had no content. Sorry.

     

    Sören

  • 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