Changing asp.net Membership Configuration

I created an ASP.NET site on Visual Studio 2010. Membership tables come automatically. There are only three fields on the register.aspx page, which are the username, email address and password. But at the registration stage, I want the member to give me more information about himself, such as first name, last name, city, gradient school, etc. .... I added additional text fields to the page and the corresponding fields in the table "aspnet_Membership".

After a short look at the codes, I found the vendors section in the web.config file. And I tried to add some parameters for my specific fields. But that did not work.

What if I need to add additional data fields to the membership table? For example, I need to know the city in which the member lives. What can I do for this circumstance?

The node membership for web.config is as follows:

<membership> <providers> <clear/> <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /> </providers> </membership> 
+4
source share
1 answer

You can expand the built-in MemberhipUser and add custom fields. Then you need to create a table for storing information, and finally, you need to create a custom membership provider. Additional Information in msdn: A Practical Guide. Implement user user user

0
source

All Articles