Shining Star Services LLC

Creating a Custom Membership Provider and Membership User utilizing a Data Set Table Adapter - Step 1

by Nannette Thacker

Creating the Project and Folders

To begin, let's create our project. If you have an existing project created in VB, you can skip this section.

  1. Open Visual Web Developer
  2. Select File / New Website
  3. Select "ASP.NET Web Site" for your default template.
  4. Give your new project a name.
  5. Select OK.

Creating Our App_Code and DataSet Folders

Now let's create a new folder for our Data Set.

  1. Right click in the Solution Explorer.
  2. Select "Add ASP.NET Folder"
  3. Select "App_Code"


  4. If you would like to keep your classes and datasets in separate folders based on functionality, optionally, right click the App_Code folder and select "New Folder." Name the folder "DataSets."
  5. Next, optionally right click the App_Code folder and select "New Folder." Name the folder "ProviderClasses."


We are now ready to begin Step 2: Step 2: Table Data Structure and Web.config for this Tutorial.

Steps for Creating a Custom Membership Provider and Membership User utilizing a DataSet Table Adapter:

Introduction: Creating a Custom Membership Provider and Membership User utilizing a DataSet Table Adapter.
Step 1: Creating the Project and Folders.
Step 2: Table Data Structure and Web.config for this Tutorial.
Step 3: Creating The DataSet.
Step 4: Creating the Table Adapter Methods for GetUserByLogin, GetUserByUserName, and InsertUser.
Step 5: Creating our Custom MembershipProvider Class.
Step 6: Adding Properties to Our Custom MembershipProvider Class.
Step 7: Creating Our Custom MembershipUser Class.
Step 8: Customizing our MembershipProvider Class.
Step 9: Our Custom RoleProvider Class.
Step 10: Our Master page.
Step 11: Our Cookie Handler class.
Step 12: Our Log In page.
Step 13: Our Register page.
Step 14: Our Log Out page.
Step 15: Our Change Password page.
Step 16: Our Administration page.
Step 17: Loading a Menu Programmatically based on Roles.
Step 18: Our Default page.
Download the ZIP files:
VB: ShiningStarCustomMemberProviderTutorial.zip
© Copyright 1997-2017 Shining Star Services LLC, Nannette Thacker. All Rights Reserved.