I am trying to make controls visible\hidden based on AD group membership.
What I have tried:
I'm fairly new to development. I am building a webforms project in C#, using studio 2015, and .net 4.5. The project uses windows authentication. I have found a way to show\hide controls based on username, which I capture using: System.Web.HttpContext.Current.Request.LogonUserIdentity.Name.Split('\\'). I am looking for a way to check for group membership rather than having to change code to change user permissions on controls.
.....for example, lets say that user "bobr" is in "lab users" AD group, I want to make Panel1 visible.