I am using Asp.Net/C# in my application , I am using Asp.Net built-in membership framework .The installation of aspnet_regsql services have been properly installed on my database.The aspnet_users table however contains basic information about the user , How do I add additional information about a user.Should I modify the table itself or should I use another table and link it with aspnet_users table.Also the Membership.ValidateUser(username,password) works well , but I have a requirement where the login is based on the user code.How can I achieve this , is it possible with built-in Membership.
Any suggestions are most welcome.
Thanks
I am using Asp.Net/C# in my application , I am using Asp.Net built-in membership
Share
Use an ASP.NET
Profile-Providerinstead.https://web.archive.org/web/20211020111657/https://www.4guysfromrolla.com/articles/101106-1.aspx
You can store any kind of additional information even binary(images).
I’ve used The
SqlProfileProvidemyself in my current application to let the user himself select his startpage.Therefor i just needed to add this to the
web.config:And i could write this property in codebehind:
and read it in the following way:
You can store anything you want, see the link above for further informations.