Last modified on 25 September 2007, at 21:40

Umbraco/Samples and Articles/Dot Net Controls/Access Umbraco Data With Dot NET Controls

Access Umbraco Data with .NET controlsEdit

This is based on an original article at

Getting StartedEdit

You can access all umbraco content by creating a reference to the umbraco.dll. Use the node factory located at umbraco.presentation.nodeFactory to mainpulate 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.