Apr 21, 2009, 10:52 AM
AjaxEvent handler in VB does not seem to work
I have the following in codebehind in VB:
Dim btnSearch As New Coolite.Ext.Web.Button
With btnSearch
.Text = "Search"
.AjaxEvents.Click.EventMask.MinDelay = 5000
.AjaxEvents.Click.EventMask.ShowMask = True
.AjaxEvents.Click.EventMask.Msg = "Performing search..."
AddHandler .AjaxEvents.Click.Event, AddressOf btnSearch_Click
End With
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As Coolite.Ext.Web.AjaxEventArgs)
'-- do something
End Sub
It gives a runtime error when click on the button. It doesn't even make it to the btnSearch_Click routine. Is this a bug??