4
Reply

handling table and its row in code behind

nishant ranjan

nishant ranjan

Jan 20 2014 4:14 AM
3.5k
<form id="form1" runat="server">
<div>
<table >
<tr >
<td></td>
<td><asp:TextBox ID="txtId" runat="server"></asp:TextBox></td>
</tr>
<tr >
<td></td>
<td><asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
</tr>
<tr >
<td></td>
<td><asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
</tr>

</table>
</div>
</form>
 
 
i have a table with row and controls.
is there any way by which we can know in which row number does control txtName or txtAddress fall or in row 1 which controls are there by accessing table at runtime i.e., in code page. either way will do. is it possible? if so then how can we do it

Answers (4)