Examining ASP.NET's Membership, Roles, and Profile - Part 13
ASP.NET's forms-based authentication system in tandem with the Membership API and Login Web controls make it a cinch to create a user store, create
user accounts, and allow visitors to log into the site. What's more, with little effort it's possible to define roles, associate user accounts wit......
Examining ASP.NET's Membership, Roles, and Profile - Part 12
Several of the earlier installments in this article series examined how to apply authorization rules in order to prohibit particular users, roles,
or classes of users from accessing particular resources. For instance, Part 2
showed how to define URL-based authorization rules in web.config fo......
Examining ASP.NET's Membership, Roles, and Profile - Part 11
Many websites that support user account allow anyone to create a new account, but require new users to undergo some form of verification before their
account is activated. A common approach is to send an email to the newly created user with a link that, when visited, activates their account. Th......
Examining ASP.NET's Membership, Roles, and Profile - Part 10
The Membership system automatically tracks the last
date and time each user's account has been accessed. With the SqlMembershipProvider, this information is
stored in the aspnet_Users database table in a datetime column named LastActivityDate. This
column is automatically updated to the cu......
Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 9
ASP.NET 2.0's Membership, Roles, and Profile systems were designed using the provider model, which
enables these systems to seamlessly use different implementations. ASP.NET ships with a provider for managing members and roles through SQL Server and another for using
Active Directory. It is......
Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 8
One of the main challenges of building a programming framework is balancing the desires to create a standardized, straightforward
API for accomplishing common tasks and providing flexibility and customizability so that developers using the framework can
mold the framework to fit their applicati......
Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 5
ASP.NET 2.0 makes it quite easy to accomplish common tasks. Want to display data from a database, allowing the user to sort,
edit, delete, and page through that data? Simply add and configure a SqlDataSource on the page, bind it to a GridView, check
a few checkboxes in the GridView's smart tag,......
Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 4
The ASP.NET 2.0 Membership class
provides a ValidateUser(userName, password) method
that returns a Boolean value indicating whether or not a user's supplied credentials are valid. This method is automatically utilized
from the Login Web control and
can also be used programmatically, if ne......
Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 3
The membership and roles providers used by ASP.NET by default are the SqlMembershipProvider and SqlRoleProvider,
respectively, which serialize membership and roles information to a SQL Server database. Specifically, this information is stored
in a variety of pre-defined tables and accessed th......
Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 2
In Part 1 of this article series we saw how
ASP.NET 2.0's membership service provides a framework for managing user accounts. The framework is composed of a
Membership class with a bevy of methods that can be used to create, delete, modify, retrieve, and authenticate
users. Since every develo......
Examining ASP.NET 2.0's Membership, Roles, and Profile - Part 1
There's one thing messageboard websites, eCommerce websites, social network
websites, and portal websites share in common: they all provide user accounts. These websites, and many others, allow
(or require) visitors to create an account in order to utilize certain functionality. For example, a......