sample c# code to manage roles with roles provider

断了今生、忘了曾经 提交于 2019-12-12 01:33:58

问题


i want to implement asp.net role provider to assign users over my LAN to roles and have my asp.net intranet app implement security based on roles.

i dont want to use VS to manage this with the built in tools but rather hand this off to users to manage themselves. i want an admin folder with a page(s) for admin roles to be able to create/edit roles and manage users in roles... this way an admin can add a domain user (MyDomain\Username) to a role such as ProojectManager or Tester or Developer... and users wont need to contact me for these tasks...

can anyone provide me a link (or some sample code) to some sample i can use to admin roles and users over a LAN in asp.net with c#?

thanks


回答1:


4GuysFromRolla have a nice sample on creating your own website admin tool. :-)

http://www.4guysfromrolla.com/articles/052307-1.aspx

And here's another....

http://www.beansoftware.com/ASP.NET-Tutorials/Web-Site-Administration-Tool.aspx



来源:https://stackoverflow.com/questions/3760871/sample-c-sharp-code-to-manage-roles-with-roles-provider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!