I am working in nodefactory in my own usercontrols. I have a parent node "1072", how can I get all the nodeids (and names) of this parent node in my c# code?
You can iterate through all the children of this node via :
umbraco.presentation.nodeFactory.Node parentNode = new umbraco.presentation.nodeFactory.Node(1072); foreach (umbraco.presentation.nodeFactory.Node node in parentNode.Children) { ... var id = node.Id; var nodeName = node.Name; }
getting childnodes of a specific parent node
Hi
I am working in nodefactory in my own usercontrols. I have a parent node "1072", how can I get all the nodeids (and names) of this parent node in my c# code?
Nauman
You can iterate through all the children of this node via :
hth, Thomas
Thank Thomas, you always provide a great help.
Cheers
Nauman
is working on a reply...