Hopefully this walks-through a fairly common real-world web
app scenario and explains how it can be easily done in ASP.NET 2.0. The
ASP.NET 2.0 Membership, Role and Profile system (especially when combined with
the new login controls) pack a lot of productivity power.
What is really nice is that they are all built on the new
ASP.NET 2.0 provider model. Our of the box ASP.NET ships built-in providers
that provide Membership, Roles and Profile storage inside SQL Express, SQL
Server and Active Directory stores (the later for Membership and Roles only).
What is even better is that you can replace any of these implementations using
a custom provider that you either buy or build yourself (see this blog post for
more details on how to-do this). Replacing a provider in ASP.NET 2.0 simply
involves changing a value in a web.config file – the above code sample will
work regardless of what provider was plugged in (LDAP, Oracle, DB2, Custom SQL
Table Schema, File-System, etc).
Hope this helps,
Scott