title: formcollection only holds the selected html.listbox items values? MVC
body: <p>My scenario is this: I have two listbox's, one that contains all my database items, and an empty one. The user adds the items needed from the full listbox to the empty listbox.</p>
  
  <p>I'm using a form to submit all the items the user has added.</p>
  
  <p>The problem is, only the selected items from the listbox are submitted. So if the user deselects some of the items, they wont be submitted in the form. My view looks like so:</p>
  
  <pre><code>&lt;% using (Html.BeginForm("MyAction", "MyController"))
     { %&gt;
  
      &lt;%= Html.ListBox("AddedItems", Model.Items)%&gt;
  
      &lt;input type="submit" value="Submit" name="SubmitButton"/&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>My Controller looks like so:</p>
  
  <pre><code>public ActionResult MyAction(FormCollection formCollection)
  {
      var addedItems = formCollection["AddedItems"].Split(',');
  
      //....more code that does stuff with the items
  }
  </code></pre>
  
  <p>Am I going about everything the wrong way? Is there better way to submit the items? What would you do?</p>