Rank: Member Groups: Member
Joined: 8/17/2007 Posts: 11
|
I'm trying to add a new menu item using MenuItemCollection:
Dim meitem As MenuItemCollection
Dim item As MenuItem item.Text.Html = "New Menu Item"
meitem.MenuItems.Add(item) Controls.Add(menu)
but I get: 'MenuItems' is not a member of 'EO.Web.MenuItemCollection'.
The help indicates: Menu1.MenuItems.Add("Products") Menu1.MenuItems.Add("Support")
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
It should be:
Menu1.Items.Add("Products")
You can always check the Server API Reference part to find out what the correct property should be.
Thanks
|