The above video will help, but yes you can allow or deny access based upon roles. This is done in a web.config file in the main directory and in each directory you want to limit access to.
you can create one in each folder by right clicking the folder in solutions view and add a web configuration file
in the files you can set it up like this
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authorization>
<deny users="*"/>
<allow roles="Administrator, Applicant"/>
</authorization>
</system.web>
</configuration> you can DENY USERS , or ALLOW USERS / DENY ROLES or ALLOW ROLES* = All users ? = Anonymous users there is also a way to deny users to a specific page
Yes you can even set the Page Theme and StyleSheetTheme in here to instead of on the page.
don't forget if you do do it on a page by page basis you need the location node with all properties for each page you define, otherwise it works for the whole folder.
So use folder levels when designing for security.
ie
/Admin
/Employee
/Customer
/Applicant
Then in your web.config you can just deny all users and allow that role to access that particular folder.
Next to set up roles.
First decide what levels of access and types of useres you will have then name your roles
next at the top of the "SOLUTIONS EXPLORER" box there is an icon with a planet and hammer
this takes you to the configuration page then click security and the create/manage roles
after you have created roles, go to manage users and place them into the role you want.
There are other features that use the role system like the LoginView if you need help with this I will post more.
I can also show you how to create a user and assign them a role at the same time if you need.
"Success is the Sum of Small Efforts, Repeated Day in and Day Out - Without Ceasing!"
Robert Hall
CEO and Founder
My Service Solutions, Inc.