We’ve got a page in our asp.net web system that uses response.redirect to redirect the user directly to an excel file so it will download ‘automatically’ without the user having to to a right click / save as.
This works great – except for files over about 100k in IE7. Other browsers just download the large file fine, and IE works fine under that threshold, but at somewhere about 200k, IE just starts handing out ‘page cannot be displayed’ errors.
Obviously, we’d like the user to be able to download in IE as well – any ideas? Is there some kind of download size threshold thing I can override?
I prefer a different method for sending files. It works for me with all kinds of different types and sizes of files.
Instead of using Response.Redirect, allow the link to the file to do a postback where you modify the response, like so:
Note: Using ”’//’ for comments so that the syntax highlighter works properly. This still compiles properly as well.
This works for us in IE6 and IE7.