How to use the PrincipalPermission Class to check authorization in ASP.NET in C#
.NET provides alternative way to enforce role and user rules. Instead of approach described in the article How to use IsInRole method to check authorization in ASP.NET in C#, you can use the PrincipalPermission class from the System.Security.Permissions namespace. You should follow the next steps:
1. Create a PrincipalPermission object that represents the …