在所有浏览器上显示“保存"对话框 [英] To show Save DialogBox on all Browser

查看:98
本文介绍了在所有浏览器上显示“保存"对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将内容转换为doc文件.现在我必须将该文件保存到现有文件夹中(而不是下载),所以我必须创建保存"对话框并将该文件保存到该文件夹​​中.请给我解决方案

I am converting content to the doc file.now i have to save that file in a existing Folder (Not Download),so I have to create save Dialog Box and have to save that file to that folder.Plz give me solution

推荐答案

在asp.net中,我们没有SaveFileDialog,因为您会遇到安全问题.

但是,可以从System.Windows.Forms使用SaveFileDialog,但所有客户端必须在其计算机上安装了.NET Framework.因此,也不建议这样做.

您可以下载文件,并通过Response对象发送文件,然后将显示窗口的下载.

嘿,您会看到以下内容: ^ ]

并且此解决方案可以为您提供帮助:如何打开在asp.net中另存为对话框 [
In asp.net we haven''t got SaveFileDialog because you''ll have security issues.

However, you can use SaveFileDialog from System.Windows.Forms but all your clients must have de .NET Framework installed on their machines. So, also this isn''t recommend.

You can make a file download, sending a file through the Response object and window''s download will be shown.

Hey, you can see this: http://www.west-wind.com/weblog/posts/2007/May/21/Downloading-a-File-with-a-Save-As-Dialog-in-ASPNET[^]

And this solution may helps you: how to open save as dialog box in asp.net[^]

Hope it helps.


这篇关于在所有浏览器上显示“保存"对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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