Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 409783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:49:28+00:00 2026-05-12T17:49:28+00:00

I think what I’m after doing is adding a couple of fields to aspnet_Users

  • 0

I think what I’m after doing is adding a couple of fields to aspnet_Users such as RealName and avatar for example, however, I want to insert values into these fields on user creation.

I have changed the name of the action to Create as opposed to register as users are created via an Admin CP.

I have assumed that this is the Action I need to alter in order to obtain what I am trying to achieve.

<AcceptVerbs(HttpVerbs.Post)> _
Function Create(ByVal userName As String, ByVal email As String, ByVal password As String, ByVal confirmPassword As String) As ActionResult

    ViewData("Title") = "Register"
    ViewData("PasswordLength") = MembershipService.MinPasswordLength

    If ValidateRegistration(userName, email, password, confirmPassword) Then
        ' Attempt to register the user
        Dim createStatus As MembershipCreateStatus = MembershipService.CreateUser(userName, password, email)

        If createStatus = MembershipCreateStatus.Success Then
            FormsAuth.SignIn(userName, False)
            Return RedirectToAction("Index", "Home")
        Else
            ModelState.AddModelError("_FORM", ErrorCodeToString(createStatus))
        End If
    End If

    Return View()
End Function

However, I’m not too sure how to go about adding new fields to the insert and I have convinced myself it can’t be as easy as changing the MembershipService.CreateUser(userName, password, email) line to include the values of my new fields.

Can someone point me in the right direction as to 1) if this is possible and how to go about it or 2) if this isn’t possible or any other solutions as to go about it?

Thanks in advance for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:49:28+00:00Added an answer on May 12, 2026 at 5:49 pm

    Use profiles for this, not accounts. See also this question, regarding use of profiles in MVC.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I know how to handle this case, but I just want to
think this should be an easy one... I want to get the currently selected
Think I'm missing a basic concept. I want to generate html by traversing through
I think this should be an easy problem to solve, however its turned into
I think the file that is produced is an .asm file, any idea how
I think most people know how to do this via the GUI (right click
I think most people here understand the importance of fully automated builds. The problem
I think this is specific to IE 6.0 but... In JavaScript I add a
I think it can be done by applying the transformation matrix of the scenegraph
I think that java executables (jar files) are trivial to decompile and get the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.