Question : Microsoft JScript runtime error :Sys.InvalidOperationExcep<wbr />tion: Handler was not added through the Sys.UI.DomEvent.addHandler<wbr /> method.

Hi ,

I am developing a .NET application and testing in IE7.
I have used a Tab Container and built Controls inside each tab panel.
I have also used ModalPopupExtender to show popups.
When I am trying to change tabs and when I close the window, I am getting the following error :
Microsoft JScript runtime error :Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.
Not sure what the problem is ..
Can anyone help in this regards .

Thanks !

Answer : Microsoft JScript runtime error :Sys.InvalidOperationExcep<wbr />tion: Handler was not added through the Sys.UI.DomEvent.addHandler<wbr /> method.

We too were having this same problem.  I have finally found a workaround.  The issue is caused when the Ok and/or Cancel Buttons of the ModalPopupExtender are defined within the UpdatePanel of the Panel that is popped up.  To fix the problem with the code provided, do the following:

 Change this line:

CancelControlID="CancelButton" />

To:



Random Solutions  
 
programming4us programming4us