There is a series of 9 articles on ASP.NET’s Membership, Roles, and Profile on 4GuysFromRolla:
Examining ASP.NET 2.0’s Membership, Roles, and Profile (There is a link to the Provider Model’s article as well. )
- Part 1 – learn about how the membership features make providing user accounts on your website a breeze. This article covers the basics of membership, including why it is needed, along with a look at the SqlMembershipProvider and the security Web controls.
- Part 2 – master how to create roles and assign users to roles. This article shows how to setup roles, using role-based authorization, and displaying output on a page depending upon the visitor’s roles.
- Part 3 – see how to add the membership-related schemas to an existing database using the ASP.NET SQL Server Registration Tool (aspnet_regsql.exe).
- Part 4 – improve the login experience by showing more information messages for users who log on with invalid credentials; also, see how to keep a log of invalid login attempts.
- Part 5 – learn how to customize the Login control. Adjust its appearance using properties and templates; customize the authentication logic to include a CAPTCHA.
- Part 6 – capture additional user-specific information using the Profile system. Learn about the built-in SqlProfileProvider.
- Part 7 – the Membership, Roles, and Profile systes are all built using the provider model, which allows for their implementations to be highly customized. Learn how to create a custom Profile provider that persists user-specific settings to XML files.
- Part 8 – learn how to use the Microsoft Access-based providers for the Membership, Roles, and Profile systems. With these providers, you can use an Access database instead of SQL Server.
- Part 9 – when working with Membership, you have the option of using .NET’s APIs or working directly with the specified provided. This article examines the pros and cons of both approaches and examines the SqlMembershipProvider in more detail.
By Bryan Xu