通过浏览位置保存文本文件 [英] save a text file by browsing a location

查看:66
本文介绍了通过浏览位置保存文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个文本文件,我想通过浏览一个位置来保存它.

我可以知道我可以做到吗.

谢谢

hi guys,

i have a text file i want to save it by browsing a location.

can i know hopw can i do this.

thanks

推荐答案

如果您使用的是ASP.NET,则不能-用户看不到服务器屏幕,或者单击任何按钮,然后单击服务器无法在客户端上运行程序.您能做的最好的事情就是让用户决定他的浏览器如何保存下载内容.

如果您不是,并且这是WinForms应用程序,则可以使用 FolderBrowserDialog [ ^ ]
If you are using ASP.NET, then you can''t - The user can''t see the server screen, or click any buttons and the server can''t run programs on the client. The best you can do is let the user decide how his browser saves downloads.

If you aren''t and this is a WinForms app, then you can use a FolderBrowserDialog[^]


这篇关于通过浏览位置保存文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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