programmatically removing submenu child items from menu control

J

jobs

I have a menu that really does not lend itself to a sitemap datasource
or security trimming.

In the codebehind i've been able to remove top level menu items with
this code:

Menu.Items.Remove(Menu.FindItem("Admin"))

But how can I remove child menu items under the Admin entry in the
same way?

Thanks for any help or information.
 
L

Larry Bud

I have a menu that really does not lend itself to a sitemap datasource
or security trimming.

In the codebehind i've been able to remove top level menu items with
this code:

Menu.Items.Remove(Menu.FindItem("Admin"))

But how can I remove child menu items under the Admin entry in the
same way?

Thanks for any help or information.

Search google groups, as I posted this question a while back. I don't
believe it can be done, even though it certainly looks like it should
work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,811
Latest member
SaulFernan

Latest Threads

Top