G
Guest
Sending the "content-disposition: attachment; filename=filename" header to
any frame causes the browser window to shut down after the open/save dialog
closes when the browser is IE6 on Window XP SP2.
Other versions of IE are fine. This has to be a bug. I feel like SP2 was
rushed out the door, as this is one of many bugs I have run across.
My workaround is execute the following JavaScript when the HtmlInputButton
that starts the download is clicked. The JavaScript changes the form target
to the parent window, posts back, and then changes the form target back to
_self.
window.document.forms[0].target = window.parent.name;
__doPostBack('MyButton','');
window.document.forms[0].target = '_self';
any frame causes the browser window to shut down after the open/save dialog
closes when the browser is IE6 on Window XP SP2.
Other versions of IE are fine. This has to be a bug. I feel like SP2 was
rushed out the door, as this is one of many bugs I have run across.
My workaround is execute the following JavaScript when the HtmlInputButton
that starts the download is clicked. The JavaScript changes the form target
to the parent window, posts back, and then changes the form target back to
_self.
window.document.forms[0].target = window.parent.name;
__doPostBack('MyButton','');
window.document.forms[0].target = '_self';