Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hii ,

asp.net provides asp.net configuration setting where we create role , and there only we need to create usernames and assign theme a role ,

But here my requirement is well i can create roles in asp.net configuration setting ,

but i dont want to create any users there as my usernames and there respective role will get save inside database during registration form ..

So how can assign role based folder authorization for each user based on there roles .

as i want to use somthing like this in my web.config file which will be inside folder .

XML
<?xml version="1.0"?>
<configuration>
  <system.web>
    <authorization>
      <allow roles="Administrator"/>
      <deny users="*"/>
    </authorization>
  </system.web>
</configuration>


and there is one more important thing i am using vs 2013 and i am not getting any asp.net configuration to create roles .

"In short i just want to make it so simple that , when i logged in , i will check that users role , if its admin role , then the role i have created gets assign to that user so that config file will get accessible as per that which is present inside folder "
Posted
Updated 27-Sep-14 18:46pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900