hi khushi2$...
i have same problem with u...
n i have posting in many forum n no one can resolve it... OMG...
the problem is just simple as you say...
i create imagebutton n it's click event...
but when i click the imagebutton, the event not getting called...
my code is :
Protected Sub Gerak(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
MsgBox("Masuk", MsgBoxStyle.OkOnly)
End Sub
For i = 0 To jum - 1
img(i) = New ImageButton()
AddHandler img(i).Click, AddressOf Me.Gerak
img(i).ImageUrl() = "images/kodok-hijau.gif"
pGame.Controls.Add(img(i))
Next
when i click imagebutton, it won't show the messagebox....
maybe you can try using button... my friend tell me that she use button with the same method and work...