Thanks - I saw the overloads but thought they would all result in a new MenuITem not a new subMenu. I'll try them out and see which one is for adding a subMenu.
- J
PS: I figured it out. If anyone else needs to see sample code for adding menuItems or sub-Menus using c# in the code behind.
Code: C#
// create new menu item
EO.Web.MenuItem itemTop = new EO.Web.MenuItem();
itemTop.Text.Html = "My Menu itemTop";
// add item to the top of my menu (SlideMenu1) defined on the ASPX page
SlideMenu1.TopGroup.Items.Add(itemTop);
EO.Web.MenuItem itemSub = new EO.Web.MenuItem();
itemSub.Text.Html = "My Menu Sub Menu";
//add item to what was just created
itemTop.SubMenu.Items.Add(itemSub);
//create second item
EO.Web.MenuItem itemSub2 = new EO.Web.MenuItem();
itemSub2.Text.Html = "My Menu Sub Menu Item 2";
itemTop.SubMenu.Items.Add(itemSub2);
EO.Web.MenuItem itemThird = new EO.Web.MenuItem();
itemThird.Text.Html = "My Menu item Third";
//add item to the sub menu 1 that was just created
itemSub.SubMenu.Items.Add(itemThird);