build fails with ModalPopupExtender when controls have event handlers

  • Thread starter Thread starter BillE
  • Start date Start date
B

BillE

I have an asp button and an asp listbox control in a panel which is the
PopupControlID for an Ajax ModalPopupExtender.

It all works great until I create an event handler for the button control,
and then the build fails - before I even put any code into the event
handler.

When the build fails, there is sometimes an error "handles clause requires a
withevents variable defined in the containing type or one of its base
types".

How can I fix this?

Thanks
Bill
 
I have an asp button and an asp listbox control in a panel which is the
PopupControlID for an Ajax ModalPopupExtender.

It all works great until I create an event handler for the button control,
and then the build fails - before I even put any code into the event
handler.

When the build fails, there is sometimes an error "handles clause requires a
withevents variable defined in the containing type or one of its base
types".

How can I fix this?

By changing your Ajax Framework... ;)
Check out:
http://ajaxwidgets.com/AllControlsSamples/CalendarWebApplicationWithDateTimePicker.aspx
or...
http://ajaxwidgets.com/AllControlsSamples/ChatClient.aspx
for a framework that supports REAL windows...
Modal or whatever you want with embedded controls just like a normal
ASP.Panel can have...

..t
 
Back
Top