我已经阅读了很多有关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自定义身份验证和角色问题
发布评论