473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

build fails with ModalPopupExtender when controls have event handlers

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
2 1677
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bill | last post by:
I am building a web form dynamically using VB 2005. I add several textbox controls, radio button controls, checkbox list controls, etc. to a placehoder control on the page, and I want to add an...
1
by: lundd | last post by:
Hi, I have a scenario where I display a modal popup, and have two button controls that should fire the cancel event for the ModalPopupExtender, however this control can only accept one such Cancel...
0
by: SD | last post by:
Hi, I have to use the ModalPopupExtender prgrammatically.. But the next sample doesn't work: ************************** protected Button bt; protected Button bc; protected Button b; protected...
1
by: Dica | last post by:
i've got a script that loops through a dataset and creates dynamic web controls and event handlers: while (oDr.Read()){ RadioButton oRb = new RadioButton(); oRb.ID = oDr.ToString();...
1
by: =?Utf-8?B?S3lsZSBNLiBCdXJucw==?= | last post by:
I have a set of controls and logic that must be invoked from several pages within a web application as a popup dialog, so I intend to use a userControl contained in a panel extended with the...
0
by: lax4u | last post by:
I want to use same ModalPopupExtender for two different Link Buttons. The Ajax Control Toolkit team decided to make the TargetControlID of the extender required. That's fine when i have single button...
0
by: Heron | last post by:
Hi, I have a listbox (lstItems) that I want to populate with the items in another listbox (lstSelected) that's in a modalpopupextender. The update is supposed to happen when I close the...
0
by: mohaaron | last post by:
Hello all, I have been using the ModalPopupExtender as a way of catching errors and displaying them to users. This includes business rule violations that I catch. This all works fine as long as...
5
by: jehugaleahsa | last post by:
Hello: I am sure this question comes up a lot. I need to disable the controls on my Windows forms so that when the BindingSource is empty some the controls bound to it will be disabled. This...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.