Removing Menu Item

bharanidharanit

Well-known member
Joined
Dec 8, 2008
Messages
53
Location
India
Programming Experience
1-3
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.

VB.NET:
If page.user.isinrole("Administrator") then
menu1.items.remove(menu1.items.find("Forums")
End if
 
Back
Top