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: