You need to return the primary key in your query. then assign the primary key to a column. you can then access this column and its value from code behind etc
eg:
<td>
<asp:Label ID="id" runat="server" Font-Names="Tahoma" Text='<%# Eval("id") %>' />
</td>