I have recently altered my program so that when a user registers their details on the site, their email and password will be saved to the membership tables. I done this without the built in login controls but I am having an issue where the email is saved
under the UserName column in the Users table instead of the Email column in the Memberships table. I would like them both in the same table so that it would be easier to query the data.
Has anyone got any suggestions of how this could be resolved?
From your post, I suppose that your website use the E-mail as account name, so it store under UserName, Do you ask user to get their UserName? Or you could creat a custom Membership. For more information, you could refer to the below link.
but I am having an issue where the email is saved under the UserName column in the Users table instead of the Email column in the Memberships table.
Hi Johny,
Can you check your table, whether the data is getting inserted properly or not. There might be some codebehind issue i guess. Also post the code or link to know us better what is happening.
Member
1 Points
10 Posts
Membership Tables in ASP.NET
Mar 08, 2015 04:49 PM|JonnyH91|LINK
Hello,
I have recently altered my program so that when a user registers their details on the site, their email and password will be saved to the membership tables. I done this without the built in login controls but I am having an issue where the email is saved under the UserName column in the Users table instead of the Email column in the Memberships table. I would like them both in the same table so that it would be easier to query the data.
Has anyone got any suggestions of how this could be resolved?
connectionstring Register membership TABLES sql
Contributor
5642 Points
944 Posts
Microsoft
Re: Membership Tables in ASP.NET
Mar 09, 2015 10:17 PM|Archer Wang|LINK
Hi JonnyH91,
From your post, I suppose that your website use the E-mail as account name, so it store under UserName, Do you ask user to get their UserName? Or you could creat a custom Membership. For more information, you could refer to the below link.
https://msdn.microsoft.com/en-us/library/ms366730(v=vs.100).aspx
If you have any other concern about it, please feel free to let me know.
Best regards,
Archer
Contributor
2106 Points
2551 Posts
Re: Membership Tables in ASP.NET
Mar 14, 2015 05:56 AM|Nadeem157|LINK
Hi Johny,
Can you check your table, whether the data is getting inserted properly or not. There might be some codebehind issue i guess. Also post the code or link to know us better what is happening.