Is there a ready made roles/membership framework for ASP.NET Web Forms?
There were few questions related to this but none answered the question in my head. Suggestions included Asp.net Membership system, a search on codeplex foundation or role out your own. Rolling out my own would be last resort as it would involve testing and design time involved. All i want role provider to perform is restrict users permissions over a action. Below you can find a scenari开发者_开发知识库o for understanding it,
Think you are admin of a Forum/Discussion board of some sort and during installation of the software it created two membership for you something like
Gold member
Silver member
Here are some imaginary roles for these memberships,
Gold member:
Can edit Posts by others
Can create Polls
Silver Member:
Can report Posts to admin
Can ban members of lower membership value
all these above roles are bit fields for ease of validation based on roles. Now my question is ,
Question
Do you know any role provider that would give me fine grain of control like above where i can edit roles for a membership, create new membership and assign roles etc which would also integrate to SignUp time integration
Specs: .NET 2.0 & Asp.net 2.0
Yes there is, and it's all in the box: http://msdn.microsoft.com/en-us/library/879kf95c.aspx
精彩评论