Archive for October 13th, 2009
Determine The Role of a User in ASP.NET

There are several controls that allow you to display content based on the role a user is in, including:
- LoginView
- LoginStatus
And the web.config file allows us to control which pages can be viewed based on which role a user is in.
But what if you need to determine the role a user is in using the APIs? How do you do that?
It turns out that the API for this is really rather straightforward.