使用asp.net在客户端计算机中创建文件 [英] File Creation in Client Machine using asp.net
本文介绍了使用asp.net在客户端计算机中创建文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好..
任何人都知道如何使用asp.net代码在客户端机器上创建文本文件..
请建议我任何解决方案..
提前致谢...
解决方案
我认为这是禁止的。但您可以在某个文件夹中的服务器上创建该文件(例如,使用
File.WriteAllText ;要获取路径,请参阅 Server.MapPath ) 。然后返回此文件的链接,以便用户下载文件。
对于各方面,请访问
https://forums.asp.net/ 。
Hello..
Anybody knows how to create a text file in client machine using asp.net code behind..
Please suggest me any solution ..
Thanks in advance...
解决方案
I think that it is prohibited. But you can create the file on the Server, in some folder (using File.WriteAllText, for example; to get the path, see Server.MapPath). Then return a link to this file, so that the users will download the file.
For various aspects, visit https://forums.asp.net/.
这篇关于使用asp.net在客户端计算机中创建文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文