I have Datalist with a LinkButton and a Label. I need to get the primary key value of the record for a particular record when I click on that data record. How to achieve that ?
<asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="DataList1_SelectedIndexChanged" RepeatColumns="1" ShowFooter="False" ShowHeader="False" Width="587px" style="margin-right: 25px; margin-bottom: 116px">
<ItemTemplate>
<table style="width:100%;">
<tr>
<td>
<asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Medium" Font-Strikeout="False" ForeColor="Black" OnClick="LinkButton1_Click" Text='<%# Eval("title") %>'></asp:LinkButton>
</td>
<td>
</td>
</tr>
<tr>
<td>
<asp:Label ID="contentLabel" runat="server" Font-Names="Tahoma" Text='<%# Eval("content") %>' />
</td>
<td>
<br />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>