ComponentOne WebMenus and WebBars for ASP.NET: C1WebMenu Overview > Static or Dynamic Menus

Static or Dynamic Menus

C1WebMenu can be created dynamically or statically. A static menu is created when you drop the C1WebMenu control on the Web form, whereas a dynamic menu is created by using a constructor to initialize a new instance of the C1WebMenu class through code.

Static Menus

To create a new static menu tree, select C1WebMenu from the toolbox and place it on your Web form. You can put several C1WebMenu objects on one form. For a menu to be functional, one or more menu items (of the type C1WebMenuItem) should be added to it. You can add, delete, and move items and submenus with the external C1WebMenu Editor. The editor can be called by right-clicking on the menu and selecting the Edit command from the context menu. See C1WebMenu and C1WebTreeView Editor for details.

Dynamic Menus

For more information about creating a dynamic menu please see Adding Menu Items and SubMenu Items Programmatically.


Send comments about this topic to ComponentOne.
Copyright © 1987-2009 ComponentOne LLC. All rights reserved.