显示保存文件对话框中的字符串ASP.NET C#? [英] Display Save File Dialog for a string ASP.NET C#?

查看:46
本文介绍了显示保存文件对话框中的字符串ASP.NET C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在生成一个字符串,生成后我想显示一个保存对话框,以便将该字符串保存到用户的本地计算机上.我不想将其保存到服务器上的文件中,只需让用户保存它,然后清除字符串即可.这可能吗?我查看了SaveFileDialog,但不确定是否可以完成此操作.感谢您的任何帮助,谢谢!

I am generating a string, which right after generating I want to display a save dialog to allow this to be saved to the user's local machine. I don't want to save it to a file on the server, just have the user save it then clear out the string. Is this possible? I looked at SaveFileDialog but wasn't sure if it would accomplish this. Any help is appreciated, thanks!

推荐答案

您需要设置某些标头以在客户端上引发文件对话框.我想这就是你的意思.

You need to set certain headers to raise a file dialog box on the client. I think this is what you mean.

在这里看到:

http://support.microsoft.com/kb/260519

这篇关于显示保存文件对话框中的字符串ASP.NET C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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