I have this code inside the Page_Load of the Site.Master.cs.
if(User.IsInRole("Read"))
{
NavigationMenu.Visible = false;
}
and I get this error:
An object reference is required for the non-static field, method, or
property
‘Microsoft.VisualBasic.ApplicationServices.User.IsInRole(string).
Any clues?
Looks like you are using the class instead an instance of that class try: