Copied to clipboard

Flag this post as spam?

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


  • Robzor 8 posts 72 karma points
    Feb 27, 2015 @ 11:33
    Robzor
    0

    Member GetValue fails when used with "@Page.Id" variable

    Hiya, very new to Umbraco and I've run into an issue I can't work out.

    Basically I have:

    var value = member.GetValue(propertyName); - where propertyName should be equal to "nodenumber1234".

    When using...

    var propertyName = "nodenumber" + 1234

    ...it works fine, but using...

    var propertyName = "nodenumber" + page.Id - where page.Id is equal to 1234

    ...it fails, with a "can't get value" error. What am I missing?

    Thank you!

  • 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