SiteMapNode currentNode = SiteMap.CurrentNode;
SiteMapNode parent = SiteMap.RootNode; SiteMapNode child = new SiteMapNode(SiteMap.Provider, "childNode", "/child.aspx"); parent.ChildNodes.Add(child);This code adds a child node to the root node of the site map. The SiteMapNode constructor is used to create a new node with a specified URL and a unique identifier. The ChildNodes property of the parent node is used to add the child node to the site map. The System.Web assembly contains the SiteMapNode class.