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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:15:31+00:00 2026-06-18T04:15:31+00:00

I have been searching for awhile to get the following done: adding items to

  • 0

I have been searching for awhile to get the following done: adding items to a form after the form has been passed. I already managed to add the HTML for the new item to the form, but after posting it is not recognized. So, let’s make my problem a bit more clear:

I have an object, namely Project. In that project, I have a List, which contains name/email and a bool to check whether or not the member has been selected (through the use of a checkbox, ofcourse).

In the view, it generates a form where someone can enter the project details and select (pre-existing) members. There is a button as well, which can create new members. When the button is pushed, the project form is hidden and a new (PartialView/form) is presented. After filling out the required user details, it is sent through an AJAX request and a JSON object is returned.

The new user is added to the usertable, but the form does not seem to recognize the newly added member. I have checked the HTML that is generated by the helpers (@CheckBoxFor etc.) with the HTML that I inject into the table: it is the same.

I suspect that the form itself has to be reset in some way (rebinding?), but my search attempts have come up with nothing, execpt tutorials/stackoverflow questions that explain how to bind a model in a view, not the rebinding.

I apologize for the lack of code, I hope the explanation is enough.

  • 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-18T04:15:33+00:00Added an answer on June 18, 2026 at 4:15 am

    I would recommend you reading the Editing Variable Length List article written by Steven Sanderson which illustrates a very nice approach to achieve that. The idea is that you should not use integers as indexes for the names of your input fields but Guids and use the .index special hidden field to indicate the index of the current row to the model binder. This way no matter how many fields you dynamically add or remove from the form the model binder will always be able to successfully bind the collection property.

    In his article he also illustrated a nice Html.BeginCollectionItem custom HTML helper which hides this work.

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

Sidebar

Related Questions

I have been searching for quite a while for a way to get color
I'm out of ideas and have been searching for awhile now, so hopefully someone
I have been searching for a while trying to get help, but without luck
I have been searching for a while, but can't seem to get a succinct
I have been having a problem that has troubled me for a while. Searching
I have been searching for a while for a simple right-click menu for a
Have been searching how to convert a dictionary to a string. But the results
I have been searching for a command that will return files from the current
I have been searching in stackoverflow for a question similar to mine because it
I have been searching several days for an example of how to make a

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.