Can anyone help me to get the ClientID of a control which is kept in the ItemTemplate of an DataControl? My control is like this.
<asp:ListView ID="ListView1" runat="server">
<LayoutTemplate>
<table ID="itemPlaceholderContainer" runat="server" border="0" style="">
<tr runat="server">
<td>Contacts</td>
</tr>
<tr id="itemPlaceholder" runat="server" >
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr style="">
<td>
<asp:CheckBox ID="chkFlag" runat="server" AutoPostBack="true" />
</td>
<td><asp:Label ID="LabelContacts" runat="server" Text='<%#Eval("cont_name") %>'></asp:Label>
<asp:HiddenField ID="hfGSM" runat="server" Value='<%#Eval("cont_gsm") %>' />
</td>
</tr>
</ItemTemplate>
</asp:ListView>
I need to get the ClientID of CheckBox from inside this ListView. Do anyone knows how to do it? Please help me in this