Creating a Custom Membership Provider and Membership User utilizing a DataSet Table Adapter - Introduction
In this article series, I provide a small web project in VB and zip file format to demonstrate how to write a Custom Membership Provider, Custom Membership User and Custom Roles using a DataSet and Table Adapters.
Click here to read: Creating a Custom Membership Provider and Membership User utilizing a DataSet Table Adapter - Introduction
Since I specialize in converting existing ASP Classic websites to ASP.net, the need to connect to an existing database is a major concern. Microsoft provides Membership Providers that ship with the .NET Framework, but for most existing websites, the database schema won't be compatible, therefore requiring the use of a custom Membership Provider.
This series of articles will cover these topics:
- Creating the Project and Folders.
- The Table Data Structure used for this Tutorial.
- Setting up your Web.config file for your custom provider.
- Creating your Data Access Layer to your legacy SQL Server 2000 or SQL Server 2003 database.
- Creating your custom MembershipProvider class which implements the ValidateUser, GetUser, and CreateUser methods.
- Creating a custom MembershipUser class.
- Creating a Provider Wrapper Class for Overloaded and Custom GetUser and CreateUser methods.
- How to call / use the Custom MembershipProvider and Wrapper within a codebehind page.
This project was written in VB and can be opened in Visual Web Developer or Visual Studio.