Overriden Membership
-
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 :)
-
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 :)
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
-
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
-
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
Not as far as I know. If you don't want to use the standard
ASPNETDB.mdf
database that resides in theApp_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