asp:Repeater ID="myRepeater" OnItemCommand="MyCommand" runat="server"> <ItemTemplate> <asp:LinkButton ID="myLinkButton" CommandName="MyCommand" CommandArgument='<%#Eval("uid")%>' runat="server" Text='<%#Eval("Forename")%>' /> <ItemTemplate> </asp:Repeater>
In my page load I did the following
if Page.Request.Params.Get("__EVENTTARGET").ToString.Substring(Page.Request.Params.Get("__EVENTTARGET").ToString.LastIndexOf("$") + 1) = "myLinkButton" then rebind_repeater_hereend if