Monday, July 16, 2007

IE hangs in AJAX Update Panel pages

Badly designed UpdatePanel may cause this issue in the popup IE page. For example, you have UpdatePanel in the start of the page. Then have a window.close button inside this UpdatePanel. Just close and open this 2 or 3 times from base IE. After that it hangs.

Resolution:

1. close button should not post back, so you can have return false in OnClientClick event
2. close button should be outside of update panel
3. call Sys.WebForms.PageRequestManager.getInstance().abortPostBack() on body unload

2 comments:

Unknown said...

Thanks very much! The post is old but only now I found it. This problem was driving me crazy!

MindLog said...

Thank you very much for the solution buddy, This problem was driving me crazy from last couple of months and i was absolutely clueless what causes the issue.

Again thanks very much.