G
Greg
I have a ModalPopupExtender with an UpdatePanel on it. On the UpdatePanel is
a DropDownList, a MultiView, and OK and Cancel buttons. The View that's
shown on the MultiView depends on what item is selected on the DropDownList.
I have postback triggers for the OK and Cancel buttons.
When I show the ModalPopupExtender and click Cancel, the code behind the
Cancel button executes, the popup hides, and everything is fine. But if I
make a selection from the DropDownList and show one of the MultiView's Views
and then click Cancel, I get an error "Microsoft JScript runtime error:
Sys.InvalidOperationException: Handler was not added through the
Sys.UI.DomEvent.addHandler method." after the Cancel button's code executes.
While I prefer to have the OK and Cancel buttons on the UpdatePanel (there
are situations where I want to disable OK), I can live with them off the
UpdatePanel, but I couldn't get the popup to work with them off the
UpdatePanel either.
If anyone has gotten the ModalPopupExtender to work with an UpdatePanel, I'd
really appreciate hearing how, as I've spent over 2 days already trying to
get this to work. I can post the html I have if that would be useful.
Thanks!
Greg
a DropDownList, a MultiView, and OK and Cancel buttons. The View that's
shown on the MultiView depends on what item is selected on the DropDownList.
I have postback triggers for the OK and Cancel buttons.
When I show the ModalPopupExtender and click Cancel, the code behind the
Cancel button executes, the popup hides, and everything is fine. But if I
make a selection from the DropDownList and show one of the MultiView's Views
and then click Cancel, I get an error "Microsoft JScript runtime error:
Sys.InvalidOperationException: Handler was not added through the
Sys.UI.DomEvent.addHandler method." after the Cancel button's code executes.
While I prefer to have the OK and Cancel buttons on the UpdatePanel (there
are situations where I want to disable OK), I can live with them off the
UpdatePanel, but I couldn't get the popup to work with them off the
UpdatePanel either.
If anyone has gotten the ModalPopupExtender to work with an UpdatePanel, I'd
really appreciate hearing how, as I've spent over 2 days already trying to
get this to work. I can post the html I have if that would be useful.
Thanks!
Greg