Is storing an array of objects in ASP.NET viewstate the best solution for this?
<p>I'm wondering if storing the data in viewstate is a good idea for this given problem.
He's a simplified example of what I am trying to achieve, firstly we have a Repeater control:</p>

<pre><code>&lt;asp:Repeater id="Repeater1" runat="server"&gt;
&lt;ItemTemplate&gt;
&lt;asp:TextBox id="Name" runat="server" /&gt;
&lt;asp:TextBox id="Age" runat="server" /&gt;
&lt;/ItemTemplate&gt;
&lt;/asp:Repeater&gt;
&lt;asp:TextBox id="NewPersonName" runat="server" /&gt;
&lt;asp:TextBox id="NewPersonAge" runat="server" /&gt;
&lt;asp:Buttin id="Button1" runat="server" Text="Add" OnClick"Button1_Click"/&gt;
</code></pre>

<p>To keep things simple I'll forego the databinding code, as this is working it loads in the current list of people and ages and binds perfectly.</p>

<p>The problem is with the bottom 3 controls, what I want is for the user to be able to type in a new entry, click the add button and this would then be added to the Repeater, but not persisted to the database.</p>

<p>The user should be able to add multiple names to the list and then click a Save button to commit all the new names in one click rather than committing for each entry.</p>
