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