如何强制浏览器打开一个"打开文件对话框"下载文件大街ASP.NET codebehind什么时候? [英] How to force Chrome to open an "open file dialog" when downloading a file vía ASP.NET codebehind?

查看:142
本文介绍了如何强制浏览器打开一个"打开文件对话框"下载文件大街ASP.NET codebehind什么时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个发送binari文件,PDF,文字的网页或excel到Web浏览器。在Firefox和IE都打开一个对话框,询问你怎么whant做这个文件,打开或保存

I have a page that sends a binari file, pdf, word or excel to web browser. In firefox, and IE both opens a dialog asking what do you whant to do with this file, "open" or "save"

Chrome浏览器直接保存到您的计算机。

but Chrome directly save it to your computer.

是否有可能为让Chrome问你你想与此文件做什么后,将一些元数据到网络响应的文件发送到浏览器之前?

Is it possible to make Chrome ask you what do you want to do with this file, placing some metadata into web response before sending the file to browser?

推荐答案

这是不可能迫使Chrome浏览器提示保存对话框。用户必须改变Chrome的配置这种行为的(高级设置)

It isn't possible to force Chrome to prompt the save dialog. The user has to change that behavior on chrome's configuration (advanced settings).

这篇关于如何强制浏览器打开一个"打开文件对话框"下载文件大街ASP.NET codebehind什么时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆