i started a site based on asp.net MVC 3 and MySql
i got the membership to work with the MySQL .NET connector
so with the default application you get with a new project of mvc 3 i have a working register form and a working login form
but… how do i add more fields to the registration form?
i know how to add them my model and to the page.. but how do i make the membership keep this new data ill get for the user?
will i have to make the columns in the database by myself? or does membership knows how to create them automaticly somehow?
i only want 3 more fields for the registration…
thanks
I suggest you this solution.
UserDetailsUserIdYou’re done.
Now you need some class to retrieve thoses fields based on the
UserId. You could also implement your ownMembershipProviderand add a method likeGetUserDetail()which return an object containing your extra fields.This is based on an official ASP.NET article : http://www.asp.net/web-forms/tutorials/security/membership/storing-additional-user-information-cs