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 8633889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:34:53+00:00 2026-06-12T09:34:53+00:00

I need to capture three different types of information from a new user who

  • 0

I need to capture three different types of information from a new user who is registering for the first time in an MVC 3 app (using EF code first). Ideally on the one page (which will have three tabs)

  1. User info
  2. Extended user info
  3. Benefits chosen by user

The register method of the account controller should populate the user table when it fires. I need some advice on how best to capture the other data. DO I create a UserDetails model for the additional data? If so is it possible to update this from the same page? (which would be the Account/Register page. Do I need to do something in the account controller or will the relationship between the models be enough?

Are there any good examples about that would explain this? I tried the MVC Contoso University one but couldn’t see if I could do this.

Any advice very welcome 🙂

Thanks

  • 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-06-12T09:34:54+00:00Added an answer on June 12, 2026 at 9:34 am

    You can create a view model that combines all the fields you need from the other models, and strongly type your view to that. Once the user submits the info back to the controller, you’ll process each property appropriately.

    public class RegisterViewModel()
    {
      //Userinfo
      public string UserName {get; set;}
      ...
      //Extended user info
      public string FirstName {get; set;}
      public string LastName{get; set;}
      ...
      //Benefits
      public string BenefitName {get; set;}
      ...
    }
    

    and then

    [HttpPost]
    public ActionResult Register (RegisterViewModel viewModel)
    {
      //grab the user info from the view model and process it
      viewModel.UserName...
    
      //grab the extended info and process it
      viewModel.FirstName...
      //grab the benefit info and process it
      viewModel.BenefitName...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a need to capture signatures from an iOS app – the use
I need to capture keystokes from a wedge device and prevent any controls or
i need to capture the loading time of each http object such as img
I need to capture the event when my app is showing a dialog and
I need to capture the graphics primitives from calls to java.awt.Graphics2D. The calls are
Basically I need to capture the video from videocamera do some processing on frames
I need to capture the amount of time that ASP.net takes to execute each
Is there any way to capture frames from as many camera types as DirectShow
I need capture audio from other application. Is there API or program in market
I'm trying to capture images from an IP camera in real time. The stream

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.