In the code behind within the button click delegate you can create a new Menu & MenuItem and simple add it to a control.
eg.
protected void Button1_Click(object sender, EventArgs e)
{
Menu newMenu = new Menu();
this.form1.Controls.Add(ne
MenuItem newItem = new MenuItem("test");
newMenu.Items.Add(newItem)
}
Not sure if your requirements where this simple or not.
Main Topics
Browse All Topics





by: IndianOceanPosted on 2008-05-14 at 22:02:32ID: 21570750
Hi, en-us/libr ary/ecs0x9 w5(VS.80). aspx
en-us/libr ary/aa4789 63.aspx
The following link simply says how you can dynamically create menu control.
http://msdn.microsoft.com/
More just for your info, here is the link of opensource menu server control which is fully flexible and a verygood xml based menu control
http://msdn.microsoft.com/
HTH,