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:
<asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<asp:TextBox id="Name" runat="server" />
<asp:TextBox id="Age" runat="server" />
</ItemTemplate>
</asp:Repeater>
<asp:TextBox id="NewPersonName" runat="server" />
<asp:TextBox id="NewPersonAge" runat="server" />
<asp:Buttin id="Button1" runat="server" Text="Add" OnClick"Button1_Click"/>
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.
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.
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.
Hope I've explained everything ok, if not please ask for more info and I'll try and explain some more!
Thanks in advance.