Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Overriden Membership

Overriden Membership

Scheduled Pinned Locked Moved ASP.NET
asp-netdatabasehelptutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    haolan
    wrote on last edited by
    #1

    Hey.. I have tried for hours, even days.. But I really cannot find out overriding the membership class the way i want to. First of all I want to override the CreateUser method, so i can add some additional fields to the CreateUser Wizard. Let's just say i want these fields: - Username - Password - E-mail address - Phone Number - Postal Code - City - Address - MembershipID I want these fields in my Wizard. At step1 I Just want Username and password and then in step 2 I want the last fields. When I create the user I have to check if the username or E-mail address already exist in the database. And I want these information to be added to my own database and not the ASPNET.msd or whatever it is named by MS as standard. Can anyone explain to me, every little step that I must take, to create this? I have tried to look at some MSDN examples, but I can't really figure out how to solve my problem. Sorry if my english is bad, I am from Denmark, and it has been a while since I last wrote anything in english :)

    P 1 Reply Last reply
    0
    • H haolan

      Hey.. I have tried for hours, even days.. But I really cannot find out overriding the membership class the way i want to. First of all I want to override the CreateUser method, so i can add some additional fields to the CreateUser Wizard. Let's just say i want these fields: - Username - Password - E-mail address - Phone Number - Postal Code - City - Address - MembershipID I want these fields in my Wizard. At step1 I Just want Username and password and then in step 2 I want the last fields. When I create the user I have to check if the username or E-mail address already exist in the database. And I want these information to be added to my own database and not the ASPNET.msd or whatever it is named by MS as standard. Can anyone explain to me, every little step that I must take, to create this? I have tried to look at some MSDN examples, but I can't really figure out how to solve my problem. Sorry if my english is bad, I am from Denmark, and it has been a while since I last wrote anything in english :)

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      This article[^] should help you with your problems. You can change the membership database by running the aspnet_regsql.exe utility from the Visual Studio command prompt. Part 6 of the article explains how to add custom properties to user profiles. Hope this helps.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      H 1 Reply Last reply
      0
      • P pmarfleet

        This article[^] should help you with your problems. You can change the membership database by running the aspnet_regsql.exe utility from the Visual Studio command prompt. Part 6 of the article explains how to add custom properties to user profiles. Hope this helps.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        H Offline
        H Offline
        haolan
        wrote on last edited by
        #3

        Thanks for your answer Isn't there another method to change database? I am using a webhost, so i don't have access to .exe files

        P 1 Reply Last reply
        0
        • H haolan

          Thanks for your answer Isn't there another method to change database? I am using a webhost, so i don't have access to .exe files

          P Offline
          P Offline
          pmarfleet
          wrote on last edited by
          #4

          Not as far as I know. If you don't want to use the standard ASPNETDB.mdf database that resides in the App_Data to store membership info, I believe this tool is your only option.

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups