NavLabel.Text = GetNav(contentDomain.GetContentAssetByName("navParentNodde"));
{
StringBuilder html = new StringBuilder();
html.Append("<ul>");
foreach (string childName in asset.Children)
{
ContentAsset child = contentDomain.GetContentAssetByName(childName);
html.Append("<li><a href=\"").Append(child.Link).Append("\">").Append(child.Title).Append("</a>");
if (child.Children.Count > 0)
{
foreach (string grandChildName in child.Children)
{
ContentAsset grandChild = contentDomain.GetContentAssetByName(grandChildName);
html.Append(GetNav(grandChild));
}
}
html.Append("</li>");
}
html.Append("</ul>");
return html.ToString();
}