vishnu suresh

vishnu suresh

  • NA
  • 53
  • 16.1k

user and admin roles

Dec 29 2014 3:36 AM

I have web program in which I want to add users and admin by user access roles. I have created admin roles and users. when I login and go the home page I want to hide some panels for users and show it for admin.

I have use this code

Panel3.Visible = User.IsInRole("vishnu");

but it is not working
I have used windows authentication.
pls help 
 

Answers (9)