使用成员身份和角色启动 .NET 项目。请指导
场景:具有用户登录、角色和权限的 Web 应用程序。
问题:
- 是从包含用户管理的 Visual Studio/Visual Web Developer Express 版本的项目向导开始还是启动一个空项目更好?
- 如果从向导开始,如何将成员资格和角色数据库表移动到我自己的数据库?
- 以编程方式处理成员资格和角色。如何?
- 如果从空项目开始,我如何管理成员资格和角色等?
- 如何在用户个人资料中添加新字段?
我是 .NET 的学生级别。以上是我在尝试开始开发项目时遇到的一些困惑。这可能是一个愚蠢的问题。请不要忽视。如有必要,请为我提供一些有用的提示和良好的链接。
编辑:
我在这里找到了一个很好的教程: http://www.codeproject.com/KB/ aspnet/ASPDOTNETauthentication.aspx 它解决了我50%的问题。
Scenario : A web application with user login, roles and permissions.
Question :
- Is it better to start with Visual Studio's / Visual Web developer Express edition's project wizard which contains the user management with it OR start an empty project?
- If started with wizard, How can I move the membership and role Database tables to my own database?
- Programatically working with Membership and roles. How?
- If started with empty project, How can I manage membership and roles etc. ?
- How to add new fields in user profile?
I am in student level in .NET. Above are some confusions I encountered while trying to start developing a project. It might be some silly question. Please do not ignore. Guide me with some helpful hints and good links if necessary.
EDIT:
I found a good tutorial here : http://www.codeproject.com/KB/aspnet/ASPDOTNETauthentication.aspx
It solved 50% of my problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您需要从一些有关如何进行身份验证的好教程开始。以下是我认为会有帮助的一些内容:
http://www.csharpfriends。 com/Articles/getArticle.aspx?articleID=70</a>
http://www.youtube.com/watch?v=8t1MoIsMUKE
因为您对 .NET 的了解只有学生水平,所以我建议您在尝试之前使用这些教程和其他教程练习几次做你想做的一切。
至于向导与空项目,我不喜欢向导。我想要改变的东西太多了,如果我忘记了一些东西,我最终会留下一些代码位,这永远不会好。
如果您手动对系统进行编码并将身份验证信息存储在数据库中,则可以管理角色/权限等。通过简单的 SQL 调用。
It sounds like you need to start with some good tutorials on how to do authentication. Here are a couple that I think would be helpful:
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=70
http://www.youtube.com/watch?v=8t1MoIsMUKE
Because you have a student level understanding of .NET, I would recommend practicing a few times using these and other tutorials before trying to do everything you want to do.
As for wizard vs. empty project, I don't like wizards. There is too much I want to change and if I forget about something I end up with code bits hanging around and that is never good.
If you code the system by hand and store your authentication information in a database, you can manage the roles/permissions/etc. with simple SQL calls.