D
Dan
Hi,
I have a repeater which contains an imagebutton like this:
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%#
Eval("myfield","mf\{0}") %>' " runat="server" />
</ItemTemplate>
</asp:Repeater>
I try to get its id in code-behind; i tried this ithout succes:
Dim img As ImageButton
img = Repeater1.FindControl("imagebutton1")
Thanks
Dan
I have a repeater which contains an imagebutton like this:
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%#
Eval("myfield","mf\{0}") %>' " runat="server" />
</ItemTemplate>
</asp:Repeater>
I try to get its id in code-behind; i tried this ithout succes:
Dim img As ImageButton
img = Repeater1.FindControl("imagebutton1")
Thanks
Dan