There are two things here. First of all, restricting access to each folder by role should be quite simple if you use elements <location>in your web.config, for example.
<location path="Resellers">
<system.web>
<authorization>
<allow roles="Reseller"/>
<deny roles="*"/>
</authorization>
</system.web>
</location>
<location path="Users">
<system.web>
<authorization>
<allow roles="User"/>
<deny roles="*"/>
</authorization>
</system.web>
</location>
...
Also on your individual pages, you can call a function IsUserInRoleto check if your user has the correct role to access the page.
You might want to get a copy. Starting with ASP.NET protection , she got some great information on how to do this.
source
share