build fails with ModalPopupExtender when controls have event handlers

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
 
T

Thomas Hansen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top