411 REFERENCE · Wikibooks
Umbraco/Samples and Articles/Dot Net Controls/Access Umbraco Data With Dot NET Controls
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Access Umbraco Data with .NET controls
This is based on an original article at http://www.umbraco.org/frontpage/documentation/implementingnetcontrols/accessingumbracodata.aspx
Getting Started
You can access all umbraco content by creating a reference to the umbraco.dll. Use the node factory located at umbraco.presentation.nodeFactory to manipulate the XML used to store all of Umbracos data.
First include:
using umbraco.presentation.nodeFactory;
To get the current node for the page the control is on use the Node.GetCurrent() method:
Node curNode = Node.GetCurrent();
Using your newly created node object, you can use work on the current node directly, or use it as a starting point to traverse the entire tree.