Click here to Skip to main content
15,916,042 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<location path="admin">
    <system.web>
      <authorization>
        <allow roles="Admins"/>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>



i want to set allow role "Admins" from database.how can i set allow role dynamically?
Posted
Updated 24-Jun-13 19:46pm
v2

1 solution

I don't know if that will help you but just have a look at it:
How to custom authorization from database[^].

But also have a look at this one as well:Is it possible to reference a value from an SQL database in a web.config file?[^]

I hope it flashes something in your mind.

Good luck,
OI
 
Share this answer
 
v2

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