ASP.NET 用户/角色编辑器

发布于 2024-08-22 00:52:15 字数 53 浏览 3 评论 0原文

我应该使用一个标准对象来编辑 ASP.NET 中的用户及其角色吗?还是我应该扮演自己的角色?

Is there a standard object I should use to edit Users and their Roles in ASP.NET? Or should I role my own?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

我偏爱纯白色 2024-08-29 00:52:15

这是一个功能相当丰富且文档齐全的...

http://mywsat.codeplex.com/

This is one is fairly feature rich and well documented...

http://mywsat.codeplex.com/

流心雨 2024-08-29 00:52:15

下面的类怎么样

编辑:
角色框架的功能通过 角色公开 类,其中包含十三个用于执行基于角色的操作的静态方法。

CreateRoleDeleteRole 方法可以完成这项工作。

参考:http://www.asp.net/learn /security/tutorial-09-cs.aspx

What about following classes

EDIT:
The Roles framework’s functionality is exposed via the Roles class, which contains thirteen static methods for performing role-based operations.

CreateRole and DeleteRole methods will do the job.

Reference : http://www.asp.net/learn/security/tutorial-09-cs.aspx

极度宠爱 2024-08-29 00:52:15

如果您需要内置功能的自定义实现,您可以对其进行修改以满足您的需求,您可以找到一个 此处

If you need a custom implementation of the built-in functionality that you can modify to suit your needs you can find one here

怕倦 2024-08-29 00:52:15

有一个在本地运行良好的内置网站管理工具:http://www.developer.com/net/asp/article.php/3569166/Configuring-Your-ASPNET-20-Site.htm。这显示了一个 IIS 管理工具,但我没有使用过,所以我不知道它有多好。但这又需要登录服务器。

对于我们的应用程序,我们构建了自己的应用程序,因为无论如何我们都需要更强大的东西,至少对于用户/角色部分而言。我个人没有看到任何东西。您可以尝试查看 codeplex.com 网站,我记得过去看到过一些东西,但从未研究/实验过。

HTH。

There is a built-in web site administration tool that works well locally: http://www.developer.com/net/asp/article.php/3569166/Configuring-Your-ASPNET-20-Site.htm. This shows an IIS administration tool, but I have not used that so I don't know how well it is. But that again would require logging into the server.

For our app, we built our own because we needed something more robust anyway, at least for the users/roles part. I haven't seen anything personally. You could try checking out the codeplex.com site, I remember seeing some things in the past, but never researched/experimented.

HTH.

歌入人心 2024-08-29 00:52:15

使用后端的标准成员资格和角色提供程序框架。有两个现成的成员资格提供程序可处理针对数据库或 Active Directory 的身份验证(SqlMembershipProvider 和 ActiveDirectoryMembershipProvider)。还有一些现成的角色提供程序(SqlRoleProvider、AuthorizationStoreRoleProvider 和 WindowTokenRoleProvider)。

对于前端,登录控件是标准的,并且与提供程序框架交互良好......但仅用于登录和更改密码。

然而,据我所知,没有标准的 GUI 控件或向导具有用于编辑和管理用户的开箱即用功能。您必须为此滚动自己的页面。

Use the standard Membership and Role providers framework for the backend. There are two out-of-the box Membership providers that handle authentication against the DB or Active directory (SqlMembershipProvider and ActiveDirectoryMembershipProvider). There are a couple of out-of-the box Role providers as well (SqlRoleProvider, AuthorizationStoreRoleProvider, and WindowTokenRoleProvider).

For the front-end, the Logon controls are standard and interact well with the Provider framework...but only for login and changing passwords.

To my knowledge however, there are no standard GUI controls or wizards that have out-of-the box functionality for editing and administering users. You'll have to roll your own pages for that.

蓝海似她心 2024-08-29 00:52:15

我写了几个自定义 aspx 页面。

I wrote a couple of custom aspx pages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文