adding more fields to registration form using membership on MySql and MVC 3

前端 未结 3 606
萌比男神i
萌比男神i 2020-12-30 13:55

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 mv

3条回答
  •  误落风尘
    2020-12-30 14:12

    Suppose you want to create fields for Age and Gender. you can first of all create UI for registration in the corresponding Registration view. it means creating input fields for Age and Gender. then in the AccountController go to Register view and add Age and Gender fields in ApplicationUser object (that is already declared). And there you go.

    Detailed information on this can be found http://blog.falafel.com/customize-mvc-5-application-users-using-asp-net-identity-2-0/

提交回复
热议问题