I have an asp.net application on my company's intranet. I am using windows authentication to capture the user's identity and active directory group. My application knows these AD groups as roles. I want to have three versions of an asp.net webform, each version tied to only a specific role.
There would be a data entry role that can only see the most limited page, a supervisor role that sees supervisory information that the data entry role cannot see, and an admin role that can see everything from the other two roles in one screen. How would I make it so that my application checks to see what role a user is part of, and based on that role decide what page to show them?
note: I already know that I can create folders in my website and give those folders their own web.config files that restrict use of a page to a specific role, and that isn't what I want to do, because then I would have to have three links for a user to click on and block certain links based on role. I want the user to AUTOMATICALLY come to the correct page for them based on their role and not ever have the option of clicking on the pages / folders of the other roles.