How t let user define privilage to a new added Role?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JustRun
    New Member
    • Mar 2008
    • 127

    How t let user define privilage to a new added Role?

    Hi,

    I can create a new Role, its simple, But it will be no use if the user cant define privilage to this role, like allow access to some pages, and deny it to athe pages?

    I use the Web.Config to define my roles authorization like bellow

    Code:
      <location path="User">
        <system.web>
          <authorization>
            <allow roles="User"/>
            <allow roles="administrator"/>
            <deny users="*"/>
            <deny users="?"/>
          </authorization>
        </system.web>
      </location>
      <system.web>
    Any Help?
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Check out this video on Forms authentication and using Membership/Roles in your application.

    -Frinny

    Comment

    • JustRun
      New Member
      • Mar 2008
      • 127

      #3
      Hi,

      Thanks for ur reply, I know how to add a nw role and how to give it the authority,
      But how to let the End Use do this?

      Let me expain more.

      I Know -----> How to add a new role
      I Know -----> How to mange the authority of this role from the We.Config

      I Dont Know ----> How o let the END User do the same "Dynamiclly "

      I want to display a window in the xxx.aspx page this page Contains all folders of the web-site
      1- let the user add a new Folder
      2- Make that New Role access this folder "Only this new folder"

      Comment

      Working...