By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,969 Members | 2,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,969 IT Pros & Developers. It's quick & easy.

build fails with ModalPopupExtender when controls have event handlers

P: n/a
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

Apr 10 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Apr 10, 10:30 pm, "BillE" <bel...@datamti.comwrote:
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/AllControlsSa...imePicker.aspx
or...
http://ajaxwidgets.com/AllControlsSa...hatClient.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

Apr 10 '07 #2

P: n/a
Let me rephrase my question - how can I fix this ... without buying
something else?

"Thomas Hansen" <po*******@gmail.comwrote in message
news:11**********************@n76g2000hsh.googlegr oups.com...
On Apr 10, 10:30 pm, "BillE" <bel...@datamti.comwrote:
>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/AllControlsSa...imePicker.aspx
or...
http://ajaxwidgets.com/AllControlsSa...hatClient.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

Apr 11 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.