How can I access control inside repeater's footer template.
I have tried
But control can't be find and null is returned.
thanks to all.
Code:
<asp:Repeater ID="RptImages" runat="server">
...
...
<FooterTemplate>
<asp:LinkButton ID="linkPrev" CommandName="prev"
OnCommand="PaginationClicked_Command"
runat="server">Prev</asp:LinkButton>
<asp:LinkButton ID="linkNext" CommandName="next"
OnCommand="PaginationClicked_Command"
runat="server">Next</asp:LinkButton>
<asp:Label ID="lblCounter" runat="server"
Width="100px"></asp:Label>
</FooterTemplate>
</asp:Repeater>
I have tried
Code:
LinkButton lkPrev = (LinkButton)RptImages.FindControl("linkPrev");
lkPrev.Enabled = false;
But control can't be find and null is returned.
thanks to all.