PC Review

Thread Tools Rate Thread

IE7 and window.open issue to HttpHandler for downloads

Posts: n/a
      2nd May 2006
I have an ASP.NET page that performs a window.open to an HttpHandler that
streams a binary file to the brower. I am forcing the save_as... dialog in
IE. My issue is that in IE6 the new window opens and the download starts.
When the download is cancelled or completed the window automatically closes,
which is exactly what I want to happen. The issue is that in IE7 Beta 2 the
window just stays open.

I've tried using a simple aspx page instead of the HttpHanlder and putting a
client-side call to window.close in the page, which does work for IE6. If I
do this in IE7 the window will close and the save_as... dialog flashes by
(gets closed too).

Has anyone seen this or know of a way to get this to work in IE7. I know
how to have a new window open with the option to download the file, but I
would rather the download just happen right away without the user having to
close the new window after the download happens.

Also, if anyones knows why IE7 seems to handle showModalDialog differently
too that would be great.

Thanks in advance,
Reply With Quote

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE7 Session and HttpHandler =?Utf-8?B?SmVk?= Microsoft ASP .NET 1 19th Sep 2007 08:06 PM
IE7 in Vista v. IE7 XP issue Ron P Windows Vista General Discussion 7 4th Feb 2007 07:38 AM
httphandler implementation issue Gais Microsoft ASP .NET 0 27th Apr 2006 10:30 AM
HttpHandler and Session Issue Nicolas Beunier Microsoft ASP .NET 4 31st May 2004 02:05 PM
Securing Huge Downloads using IIS, aspnet_isapi.dll, HttpHandler... Earl Teigrob Microsoft ASP .NET 5 5th Mar 2004 05:20 PM




All times are GMT +1. The time now is 09:23 AM.