I have a UserControl call itemUserControl inside an Update Panel.
<asp:UpdatePanel ID="updPanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<STX:ItemControl ID="itemUserControl" runat="server" />
</ContentTemplate>
</asp:UpdatePanel>
Inside the UserControl I have a link button with an OnClick event which I hope to capture from within the user control's code behind.
<asp:LinkButton ID="lnkBtn" runat="server" Text="ClickMe" OnClick="lnkBtn_Click" />
I can't seem to get it working :( From Googling around it looks like I need to add the Triggers to wire up the button click event.
<Triggers>
<asp:PostBackTrigger ControlID="lnkBtn" EventName="Click" />
</Triggers>
However, I can't add this Trigger on the parent page right after the ContentTemplate tag because Visual Studio doesn't see the button ID. Is there a way to do this? I just want the button event to fire on the user control's code behind.