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
How can I get topnodes for following nodes in content.
Site1
Site2
About
I want to get "Site1" and "Site2" and "About" in one of my c# code? I have done following to acheive this
var rootNodes = new umbraco.presentation.nodeFactory.Node(-1).ChildrenAsTable(); sl.DataSource = rootNodes;sl.DataTextField = "NodeName";sl.DataValueField = "Id";sl.DataBind();
The problem is this only gets "Site1" and "Site2" in drop down and not getting "About". What could be the issue?
PS: "Site1" and "Site2" are based on one doctype and "About" is based on other. I have published and checked everything in umbraco.
Regards
Nauman
Maybe this helps?
http://umbraco.com/follow-us/blog-archive/2011/3/13/umbraco-razor-feature-walkthrough-part-5.aspx
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
get top / parent nodes
How can I get topnodes for following nodes in content.
Site1
Site2
About
I want to get "Site1" and "Site2" and "About" in one of my c# code? I have done following to acheive this
var rootNodes = new umbraco.presentation.nodeFactory.Node(-1).ChildrenAsTable();
sl.DataSource = rootNodes;
sl.DataTextField = "NodeName";
sl.DataValueField = "Id";
sl.DataBind();
The problem is this only gets "Site1" and "Site2" in drop down and not getting "About". What could be the issue?
PS: "Site1" and "Site2" are based on one doctype and "About" is based on other. I have published and checked everything in umbraco.
Regards
Nauman
Maybe this helps?
http://umbraco.com/follow-us/blog-archive/2011/3/13/umbraco-razor-feature-walkthrough-part-5.aspx
is working on a reply...