Hello,
Does anybody know how to access the C# .NET's alternative to XSLT's $currentPage/descendant-or-self::node?
I am trying to create a dropdown user control data type that retrieves certain properties of the node. I know I have to use the umbraco's node factory but I dont know exactly I should call to produce the behavior that I need.
Code:
DataTable dt = Node.GetCurrent().ChildrenAsTable("Item");
ddl.DataSource = dt;
ddl.DataValueField = dt["Id"];
ddl.DataTextField = dt["NodeName"];
ddl.DataBind();
I have added what I think the code should be but feel free to point me to right direction :)
Thanks,
John Cruz