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 733 posts 2844 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 733 posts 2844 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

Please Sign in or register to post replies

Write your reply to:

Draft