MenuItem Name

  • Thread starter Thread starter Thore Berntsen
  • Start date Start date
T

Thore Berntsen

I need to find the Name of a MenuItem. Does anyone know how that is done?

Thore Berntsen
 
Thore Berntsen said:
I need to find the Name of a MenuItem. Does anyone know how that is done?

Thore Berntsen

MenuItem menuItem = new MenuItem();
string name = menuItem.Site.Name;
 
Sean Hederman said:
MenuItem menuItem = new MenuItem();

Oops! This wouldn't actually work since the Site hasn't been set yet.
However, you can use the line below on a menu item that's been created and
added to the Control.
 
Back
Top