This Assembly (based on .NET 3.5) helps you to Generate Menu based on <ul> - <li> tags (customizable)
without any limitation in count of child Nodes


List<Node> nods = DAL.GetData();

 

    Builder b = new Builder(nods);

     b.NodeSetting.OnNodeAdded += NodeSetting_OnNodeAdded;

      StringBuilder s = b.Export(b.Normalize());

        Literal_menu.Text = s.ToString() ;


 

 void NodeSetting_OnNodeAdded(NodeAddedEventArgs e)
        {
            if (e.Current.IsRoot)
            {
                e.Current.Text = "<span style='color:green'>" + e.Current.Text + "</span>";
            }
        }

Last edited Sep 8, 2013 at 5:30 PM by mbseifollahi, version 9