My page load checks to see if the user is authorized to administer the site. If he is, the administration menu is turned on like this.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If HttpContext.Current.User.IsInRole("Administrator") Then
NavigationMenu.Items(1).Enabled = True
Else
NavigationMenu.Items(1).Enabled = False
End If
End Sub
This works, but I would like to hide the Administration menu tab altogether if he is not authorized. I cannot find a way to make it not visible or remove it. Is this possible?
Thanks
...
Go to the complete details ...