如何防止 IE7 文件下载弹出窗口阻止程序出现在 ASP.NET 应用程序中
我有一个 .NET 应用程序 允许用户下载文档 (.rtf) 通过单击下载按钮, 然后将打开保存/打开对话框。它 在 IE6 和 8 中都可以工作。 但是,在 IE7 中,当单击 按钮,弹出窗口拦截器显示在顶部 网页的,用户必须单击 拦截器,然后单击下载 文件菜单来下载文件。有一次我 单击拦截器并下载 其中的菜单,拦截器不会 再次出现。但是,如果我关闭IE7 windows,然后开始下载 再次处理,拦截器重复。
如何防止IE7文件下载弹出窗口 拦截器出现在 ASP.NET 应用程序中 编程方面,如果可能的话,作为 反对在IE中进行设置。
这似乎与 HTTP 标头有关,或者 内容类型?理想的解决方案是 拦截器永远不会出现在 IE7 中 就像在其他浏览器中一样。
即使在本地主机中也会发生这种情况。 有趣的是,拦截器不 单击 HTML archor 时显示 下载其他文件的链接。
拦截器上的消息如下:
为了帮助保护您的安全, Internet Explorer 阻止了该网站 从下载文件到您的 电脑。单击此处查看选项。 下载文件...
经过调查,发生的情况是在发送文件下载的 url 请求之前,向服务器发送了 put 操作(以在文件下载之前保存更改),这触发了 IE7 安全拦截器。我想知道任何解决方法,以及可能的原因。
I have an application in .NET that
allows user to download document
(.rtf) by clicking a downlaod button,
then a save/open dialogue opens. It
works in IE6, and 8 that ways.
However, in IE7, when clicking the
button, a popup blocker shows at top
of the web page, and user has to click
the blocker, and click the dowload
file menu to download the file. Once I
click the blocker and the download
menu within it, the blocker will NOT
show up again. However, if I close IE7
windows, and start the download
process again, the blocker repeat.How to prevent IE7 file download popup
blocker shows up in ASP.NET App on
programming side, if possible, as
opposed to make settings in IE.It seems to do with HTTP header, or
content type? Ideal solution would be
that the blocker never shows up in IE7
as in other browser.It happens even in localhost.
Interestingly, the blocker does NOT
shows up when clicking HTML archor
link to download other files.The message on the blocker is below:
To help protect your security,
Internet Explorer blocked this site
from downloading file to your
computer. Click here for options.
Download File ...
After investigation, what happens is that before sending an url request for a file download, a put operation is sent to server (to save the change before file download), which triggers IE7 security blocker. I would like to know any workaround, and the reason if possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://support.microsoft.com/kb/937409,http://technet.microsoft.com/en-us/library/cc875817.aspx
http://support.microsoft.com/kb/937409, http://technet.microsoft.com/en-us/library/cc875817.aspx