ASP.NET自定义身份验证和角色问题

编程入门 行业动态 更新时间:2024-10-26 22:27:57
本文介绍了ASP.NET自定义身份验证和角色问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经阅读了很多有关SqlMembershipProvider和SqlRoleProvider的文章,但是我认为仍然不能满足我的要求,或者我可能没有得到直接的理解. 我已经为网站用户创建了一个注册页面和一个登录页面,还创建了两个角色(管理员和标准角色),管理员角色控制其他用户和角色.我尝试在ASP.NET中使用LoginControl和CreateUserWizard控件,但是使用后(aspnet_regsql.exe实用程序),创建的表与我想要的不匹配.就像我的Web应用程序中的列类似(Company_Name,Company_Id,Home_Address等),但是表中没有此类列. ---如何在我的应用程序中实现成员和角色---

I have read a lot of articles on SqlMembershipProvider and SqlRoleProvider, but i think is still does not meet-up with my requirement or maybe i am not getting something straight in it. I have created a registration page an a login page for user of the website, Two roles are also created (Administrator and Standard Role) the administrator role control other users and roles. I tried using the LoginControl and the CreateUserWizard control in ASP.NET but after i have use (aspnet_regsql.exe utility), the tables that are created does not meet-up with what i want. Like the column in my web application has something like (Company_Name, Company_Id, Home_Address e.t.c) but the tables dont have such columns in them. --- How can i implement Member and Role in my Application ---

推荐答案

您可以自定义CreateUserWizard控件,请参见以下文章: www.4guysfromrolla/articles/070506-1.aspx#postadlink [ ^ ] You can customize CreateUserWizard control look at this article: www.4guysfromrolla/articles/070506-1.aspx#postadlink[^]

更多推荐

ASP.NET自定义身份验证和角色问题

本文发布于:2023-11-14 14:49:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1587590.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   身份验证   角色   ASP   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!