Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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!
is working on a reply...