I have a html table with data from sql. Each line has a "give" button. I need that when pressed, the value of the "code" cell is transferred to C# code. The "code" column has unique values and can be used as id.
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<table class="table table-striped table-hover">
<thead class="thead-light">
<tr>
<th></th>
<th scope="col">name</th>
<th scope="col">sur</th>
<th scope="col">code</th>
</tr>
</thead>
</HeaderTemplate>
<ItemTemplate>
<tbody id="myTable">
<tr>
<th><button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">give</button> </th>
<td><%# Eval("name")%></td>
<td><%# Eval("sur")%></td>
<td><%# Eval("code")%></td>
</tr>
</tbody>
</itemtemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>