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, is it possible to get a Node by passing some method that node's ID?
In umbraco.NodeFactory, there's a GetNodeByXpath method but I'd like to use and ID.
Thanks.
Hi Will
You should be able to use the umbraco.library extension called getXmlNodeById(string nodeId).
/Kim A
You can also use something like
Node n = new Node(1234);
1234 being the ID of the node.
-Tom
Thanks for the speedy reply Kim! Moments after I posted this I found a way to do it (I think) -
Node myNode = new Node(myID)
Just curious, what assembly is the umbraco.library located? It's not immediately obvious to me.
Thanks again.
Looks like you figured it out :)
umbraco.library is in umbraco.dll I believe
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get Node by ID in User Control
Hi, is it possible to get a Node by passing some method that node's ID?
In umbraco.NodeFactory, there's a GetNodeByXpath method but I'd like to use and ID.
Thanks.
Hi Will
You should be able to use the umbraco.library extension called getXmlNodeById(string nodeId).
/Kim A
You can also use something like
1234 being the ID of the node.
-Tom
Thanks for the speedy reply Kim! Moments after I posted this I found a way to do it (I think) -
Node myNode = new Node(myID)
Just curious, what assembly is the umbraco.library located? It's not immediately obvious to me.
Thanks again.
Looks like you figured it out :)
umbraco.library is in umbraco.dll I believe
is working on a reply...