Custom Dropdown user control data type Options
kutedawako
Posted: Saturday, December 15, 2007 4:18:21 AM
Rank: Devotee

Joined: 9/12/2007
Posts: 58
Location: Honoluu, HI
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
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.