Welcome Guest Search | Active Topics | Sign In | Register

SlideMenu - new menu item Options
h0lly
Posted: Saturday, September 1, 2007 5:20:51 PM
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")
eo_support
Posted: Saturday, September 1, 2007 5:25:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.