LinkButton not firing OnClick event in Accordion
Posted
by lampej
on Stack Overflow
See other posts from Stack Overflow
or by lampej
Published on 2010-04-05T20:59:57Z
Indexed on
2010/04/05
21:03 UTC
Read the original article
Hit count: 314
I have not been able to get the break point I have on LinkButtonDelete_Click to fire. Is there a trick to dealing with buttons inside of Accordions? Thank you.
<cc1:Accordion ID="Accordion1" runat="server" DataSourceID="ObjectDataSource1"
SelectedIndex="-1" RequireOpenedPane="false">
<HeaderTemplate>
<asp:Label ID="LabelDisplayName" runat="server" Text='<%#Bind("FirstName") %
>'></asp:Label>
</HeaderTemplate>
<ContentTemplate>
<asp:LinkButton ID="LinkButtonDelete" runat="server"
OnClick="LinkButtonDelete_Click" Text="Delete"></asp:LinkButton>
...
</ContentTemplate>
</cc1:Accordion>
Public Sub LinkButtonDelete_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim button As LinkButton = CType(sender, LinkButton)
...
End Sub
© Stack Overflow or respective owner