Author: bhanu2217 | Posted on: 1/1/2010 2:44:09 AM | Views : 463

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 ...