marvz
07-17-2005, 08:51 PM
how can i get the control number of the last row in a htmltable from asp.net page? I want to dynamically delete the last row of html table.
for example, i have a dynamically created table which resuyls like the one below.
<table id="overall_table" runat="server">
<tr><td>
<table id="inner_table" runat="server">
<tr>td>Row 1 </td></tr>
<tr>td>Row 2 </td></tr>
<tr>td>Row 2 </td></tr>
</table>
</td></tr>
<tr></td>
<asp:button id="button1" Text="Delete Last Row" />
</td></tr>
</table>
what i want to do now is when i click the button, the last row of a table id="inner_Table" will be deleted/remove.
Thanks
for example, i have a dynamically created table which resuyls like the one below.
<table id="overall_table" runat="server">
<tr><td>
<table id="inner_table" runat="server">
<tr>td>Row 1 </td></tr>
<tr>td>Row 2 </td></tr>
<tr>td>Row 2 </td></tr>
</table>
</td></tr>
<tr></td>
<asp:button id="button1" Text="Delete Last Row" />
</td></tr>
</table>
what i want to do now is when i click the button, the last row of a table id="inner_Table" will be deleted/remove.
Thanks