Hello,
I am using Visual Web Developer 2008.
I am using menu control binded to site map.
So when the user role is administrator, i want to remove the menu item from the menu.
I used the coding but not working.

If page.user.isinrole("Administrator") then
menu1.items.remove(menu1.items.find("Forums")
End if

Try the logic in

protected void Menu_MenuItemDataBound(object sender, EventArgs e)

{

}

i am using filesytem as vb not c#.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.