All Tags »
C# »
Security (RSS)
Sorry, but there are no more tags available to filter with.
-
Here is some code snippet to see if a user belongs to a certain security group. The code below will work with local group as well as AD groups:
Works in ASP.NET:
//Case Insensitivebool t1 = Page.User.IsInRole(''Everyone'');Works Everywhere://Case Sensitivestatic bool IsInRole(string ...