bharanidharanit
Well-known member
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.
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