Hi Guys,
How do i get access to a control (linkbutton in my case) that is within the itemtemplate section of asp datalist control? For example: I want to set the linkbutton to visible false, but cannot figure out how to get the reference to it from the code-behind.
Example code:
<asp:datalist id="datalist1" runat="server">
<ItemTemplate>
<asp:label id="label1" runat="server"></asp:label>
<asp:linkbutton id="editButton" runat="server" text="Edit"></asp:linkbutton>
</ItemTemplate>
</asp:datalist>
Thanks.