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
Hi.
I have a .Net control that does the following
using umbraco.presentation.nodeFactory;...Node myNode = new Node(1100);lblTest.text = myNode.Id.ToString();lblTest2.text = myNode.GetProperty("umbracoBytes").value;lblTest3.text = myNode.Name;
I've checked and the id is a valid one.
However, lblTest and lblTest3 display nothing, and lblTest2 causes a crash with "object reference not set".
I must be forgetting something basic but I can't see what.
Any ideas?
Shaun,
I think nodefactory is for published content nodes, if you want media you will have to get new Media
Regards
Ismail
Aha! Thanks Ismail.
is working on a reply...
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.
Continue discussion
Nodefactory not finding node data
Hi.
I have a .Net control that does the following
I've checked and the id is a valid one.
However, lblTest and lblTest3 display nothing, and lblTest2 causes a crash with "object reference not set".
I must be forgetting something basic but I can't see what.
Any ideas?
Shaun,
I think nodefactory is for published content nodes, if you want media you will have to get new Media
Regards
Ismail
Aha! Thanks Ismail.
is working on a reply...
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.