On my master page i have a link button which should be visible only by Administrator or Supervisors roles.
So in the code behind file of the master page i have put the following code in page load event
if (Request.IsAuthenticated && (User.IsInRole("Administrators") || User.IsInRole("Supervisors")))
{
LinkButton1.Visible = true;
}
but i am getting following error
The name 'User' does not exist in the current context
Please let me know how to resolve this.
...
Go to the complete details ...