title: Get client side HTML changes on postback
body: <p>I want to add rows to a table with javascript, but I also want to be able to find out what those rows are on postback. Is there a way to do that?</p>
  
  <p>I also want to be able to populate the original rows in the table from the server (I'm thinking with a repeater). Is it still possible to do that?</p>
  
  <p>That's not much of a description but I think that covers it... </p>
  
  <p>The code currently looks something like this</p>
  
  <pre><code>&lt;table id="myTable"&gt;
  &lt;tr&gt; &lt;td&gt; some static row &lt;/td&gt; &lt;/tr&gt;
  &lt;asp:repeater id="rptTest" runat="server"&gt;
  &lt;HeaderTemplate&gt;
      &lt;tr class="dgheader"&gt;
          &lt;th&gt; head1 &lt;/th&gt;
          &lt;th&gt; head2 &lt;/th&gt;
          &lt;th&gt;&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/HeaderTemplate&gt;
  &lt;ItemTemplate&gt;
      &lt;tr class="&lt;%# (Container.ItemIndex%2 == 0) ? "dgitem" : "dgalternatingitem" %&gt;"&gt;
          &lt;td&gt;&lt;%# Eval("val1") %&gt; &lt;/td&gt;
          &lt;td&gt;&lt;%# Eval("val2") %&gt; &lt;/td&gt;
          &lt;td&gt;&lt;a class="dgdeletebutton" href="javascript:delete(this)"&gt;&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/ItemTemplate&gt;
  &lt;/asp:repeater&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>At the moment all I'm wondering is how, server side, I can get a version of the table that has whatever changes I made client side. </p>