1
Answer

panel cntrl for specific users

I hve created asp.net web  application,in which I want to hide panel in a page for some specific users. only admin can see the panel. I have created admin and other user.after logging, for admin the panel is not showing.

Panel1.Visible = (User.Identity.Name == "admin");

pls help
 

Answers (1)