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
I'm new for umbraco and i want to find the exact child node from list of child nodes in c#
how this possible in c#?
You Can Find it by ID
var umbracoNode =Children.Single(x=>x.Id=<YourNodeID>);
and if your not sure the node is there u can use "SingleOrDefault"
var umbracoNode =Children.SingleOrDefault(x=>x.Id=<YourNodeID>);
then check if umbracoNode != null
hope that helps
*NOTE: you can get Nodes ids in properties tab in the back office *
you could use:
var node = Umbraco.TypedContentSingleAtXPath("//DocTypeAlias");
or
var node = nodes.Where(x => x.Content.DocTypeAlias == "YourDocTypeAlias");
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to find the exact child node from list of nodes in c#
I'm new for umbraco and i want to find the exact child node from list of child nodes in c#
how this possible in c#?
You Can Find it by ID
and if your not sure the node is there u can use "SingleOrDefault"
then check if umbracoNode != null
hope that helps
*NOTE: you can get Nodes ids in properties tab in the back office *
you could use:
or
is working on a reply...