468,170 Members | 2,185 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,170 developers. It's quick & easy.

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

JustRun
127 100+
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

Expand|Select|Wrap|Line Numbers
  1.   <location path="User">
  2.     <system.web>
  3.       <authorization>
  4.         <allow roles="User"/>
  5.         <allow roles="administrator"/>
  6.         <deny users="*"/>
  7.         <deny users="?"/>
  8.       </authorization>
  9.     </system.web>
  10.   </location>
  11.   <system.web>
  12.  
Any Help?
Oct 2 '08 #1
2 1089
Frinavale
9,735 Expert Mod 8TB
Check out this video on Forms authentication and using Membership/Roles in your application.

-Frinny
Oct 2 '08 #2
JustRun
127 100+
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"
Oct 6 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by rcamarda | last post: by
2 posts views Thread by Jesper Stocholm | last post: by
1 post views Thread by WhiskyRomeo | last post: by
2 posts views Thread by Anthony Smith | last post: by
reply views Thread by kamranasdasdas | last post: by
reply views Thread by gcreed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.