Click here to Skip to main content
15,887,866 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
<location path="ClientUser" allowOverride="true">
    <system.web>
      <authorization>
        <allow roles="Client"/>
        <deny users="*"/>
      </authorization>
    </system.web>  </location>

using as like above it's not working but when using as follows is workiung with result failure i mean access prevtion is not working.

C#
<location path="~/AdminUser" allowOverride="true">
    <system.web>
      <authorization>
        <allow roles="Admin"/>
        <deny users="*"/>
      </authorization>
    </system.web>  </location>
Posted

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