示例C#代码以使用角色提供程序管理角色 [英] sample c# code to manage roles with roles provider
问题描述
我想实现asp.net角色提供程序,以便通过LAN将用户分配给角色,并让我的asp.net Intranet应用程序实现基于角色的安全性.
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.
我不想使用VS通过内置工具来管理它,而是将其交给用户自己管理.我希望管理文件夹中具有管理角色页面,以便能够创建/编辑角色并管理角色中的用户...这样,管理员可以将域用户(MyDomain \ Username)添加到诸如ProojectManager的角色中或测试人员或开发人员...,用户无需与我联系以完成这些任务...
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...
有人可以给我提供一些示例的链接(或一些示例代码),我可以使用c#在asp.net上通过LAN来管理角色和用户吗?
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#?
谢谢
推荐答案
4GuysFromRolla提供了一个不错的示例来创建您自己的网站管理工具.:-)
4GuysFromRolla have a nice sample on creating your own website admin tool. :-)
http://www.4guysfromrolla.com/articles/052307-1.aspx
这是另一个....
http://www.beansoftware.com/ASP.NET-Tutorials/Web-Site-Administration-Tool.aspx
这篇关于示例C#代码以使用角色提供程序管理角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!