Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

LinkButton not firing OnClick event in Accordion

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 AJAX Accordions? Thank you.

   SelectedIndex="-1" RequireOpenedPane="false">

                    OnClick="LinkButtonDelete_Click" Text="Delete">


Public Sub LinkButtonDelete_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim button As LinkButton = CType(sender, LinkButton)
End Sub
Using the ItemCommand Event:

 SelectedIndex="-1" RequireOpenedPane="false">

            CommandName="Remove" Text="Delete">

Private Sub Accordion1_ItemCommand(ByVal sender As Object, ByVal e As     
   System.Web.UI.WebControls.CommandEventArgs) Handles Accordion1.ItemCommand
    If e.CommandName = "Remove" Then
        'Do stuff
    End If
End Sub

asked May 9, 2015 in vbdotnet by rajesh
0 votes

Related Hot Questions

Government Jobs Opening