I have a page that renders two panels that display the same data differently using a repeater, differently. I then have a javascript function that toggles between the two views. I want each data item in each view to have a checkbox.
<asp:panel id="1" runat="server">
<asp:repeater id="view1" runat="server"/>
</asp:panel>
<asp:panel id="2" runat="server">
<asp:repeater id="view2" runat="server"/>
</asp:panel>
<a onclick="toggle();"/>Toggle</a>
When I transfer between views, I want the checkbox.value to also transfer.
I also want the value of the checkbox to be accessible on a postback. What is the best way to do this?