I need to use Security Application Block of Enterprise Library in ASP.NET C# Web Application. I have multiple .aspx pages in my application and I need to show them only to authorized user by checking their roles and Roles list we will get from Database of
So I need to know following things.
How to use Security Application block for roles gettiing from Database. I have an example for roles in XML but that is not helping.
How to define roles for the user that has logged in? I am running sql query for getting roles but how to associate it logged in user and how to use Security block with these information.
As you might have know, I am really blank, please hep me out ASAP.