Hello All..I am facing a problem with menu control.
I want to add menu items and sub menu items programatically. I am able to add sub menu items, when i add menu items from the menu editor as:
Menu1.Items[0].ChildItems.Add(new MenuItem("View ", "", "", "~/view.aspx"));
What i want to do is to add menu items programatically not using the menu editor, i tried the following but not working.
Menu Menu1 = new Menu();
Menu1.Items[0].Text = "Item1";
Menu1.Items[0].Value = "1";
Regards
Abdul Ghaffar