I bind the click event handler server-side, and pass some additional parameters. This binding is done as part of a repeater data bound event. When I click the LinkButton the event handler's never fired. Can't work out why:
lnkUp.Click += (lnkSender, eventArgs) => { lnk_Click(lnkSender, eventArgs, int1, int2, string1); };
(I've checked lnkUp is not null etc.).
The event handler:
void lnk_Click(object sender, EventArgs e, Int32 int1, Int32 int2, String string1)
{
//Do something fantastic
}
In case you're wondering about the mark-up:
<asp:LinkButton ID="lnkUp" runat="server" Text="SomeText"/>