Posted on: 10/15/2014 11:17:18 AM | Views : 445

<table id="table1" runat="server" onprerender="table1_prerender" /> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
The table has neither <tr> nor <td> tag in markup, because their numbers are not fixed.
On table1_prerender... <tr>s and <td>s are created, after their numbers are known from querying. Header cells are filled by text as innerHTML, also with a HiddenField with ID and Value. Data cells are each filled with a TextBox with ID and Text.
On client side... Client modifies the TextBox.Texts, in turn the header HiddenField.Values are changed by script.
On Button1_Click... Client is supposed to postback the entire table, with all headers and data modified or not.
Problem... On Button1_Click, server needs to get all the stuff, but of course Request.Form finds nothing more than the table tag and the but ...

Go to the complete details ...