skmMenu: An ASP.NET Menu Control

Menu.BuildMenuID Method 

Creates a MenuID for a MenuItem.

protected virtual void BuildMenuID(
   MenuItem mi,
   string parentID,
   int indexValue
);

Parameters

mi
The MenuItem that will have its MenuID set.
parentID
The MenuID of the MenuItemmi's parent.
indexValue
If MenuItemmi has a parent, the indexValue indicates what index mi is in its parent's set of MenuItem children.

Remarks

BuildMenuID() formats the index as a three-digit number. This puts an upperbound on the number of MenuItems any menu can contain. Precisely, no single menu may contain more than 1,000 MenuItems.

See Also

Menu Class | skmMenu Namespace