In VB.NET we can easily query the current Windows user - and which roles are "addressed" to him/her. Long live the My-namespace. In C# it isn't tricky either, it just needs a little deeper digging in the System.Security.Principal namespace. In the following example we will check if a user is a memb... [More]