title: asp.net mvc 2. Adding to a viewModel's collection(client side)
body: <p>I know that you can bind to a viewModel's collection on the client side like so:</p>
  
  <pre><code>    &lt;%for(int i = 0; i &lt; Model.contacts.Count; i ++){%&gt;
          First Name: &lt;%: Html.TextBoxFor(model =&gt; model.contacts[i].firstName) %&gt;
          Last Name: &lt;%: Html.TextBoxFor(model =&gt; model.contacts[i].lastName) %&gt;
      &lt;%}%&gt;
  </code></pre>
  
  <p>... this will allow the user to change the name info associated with this collection and when the form is posted to the receiving action the viewModel will have the respective changes.<br>
       Given that I can edit a viewModel's collection from the client, is there a way I can add to a viewModel's collection from the client as well.   For example add a new contact into the viewModel's contacts List. I want to put a simple "Add contact" button in my page that will allow the user to add a contact to this list with out going back and forth to the server.  Am i trying to do something impossible.  I hope this makes sense.
     Thanks.</p>