我在页面动态添加了一些LinkButton,并绑定了事件,但事件就是触发不了,请高手帮忙解决,代码如下:
    Private Sub PageButtonClick(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim a As LinkButton
        a = sender
        iCurrPage = a.Text
        PAddBtn(10)
        a.CssClass = "link curr"
    End Sub    Private Sub PAddBtn(ByVal iCount As Integer)
        Dim i As Integer
        For i = 1 To iCount
            Dim o As New LinkButton
            o.Text = i.ToString
            If o.Text = iCurrPage.ToString Then
                o.CssClass = "link curr"
            Else
                o.CssClass = "link normal"
            End If
            AddHandler o.Click, AddressOf PageButtonClick
            Me.Panel1.Controls.Add(o)
        Next    End Sub