ASP-在客户端计算机中创建文本文件 [英] ASP - create text file in client machine

查看:99
本文介绍了ASP-在客户端计算机中创建文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用经典ASP在客户端计算机中创建文本文件?

How to you create a text file in the client machine using classic ASP?
Is it possible?

推荐答案

您无法使用ASP在客户端计算机上创建文件.尽管ActiveX或Java applet可以.
You can''t create files on the client''s machine with ASP. Though ActiveX or java applet can.


您拥有的唯一文件访问权限也就是cookie-请参阅W3 Schools Clicktiy ]  尽管用户可以阻止它们.[/edit]
The only file access you have is too cookies - see W3 Schools ASP Cookies[Clicktiy]  [edit]although users can block these.[/edit]


您必须调用Response.WriteFile(),这将提示用户保存或拒绝文件.这是从您的网站将文件添加到客户端计算机上的唯一方法.

如果他们没有运行IE,则ActiveX crement 方法将根本无法工作.考虑到IE的市场份额每天都在缩小,这取决于ActiveX excrement 不可行,更不用说几乎没有人允许ActiveX crement 从浏览器运行无论如何.
You have to do a call to Response.WriteFile() which will prompt the user to either save or reject the file. That''s the only way to get afile onto the client''s machine from your web site.

If they''re not running IE, the ActiveXcrement method won''t work at all. Consider that IE''s market share shrinks every day, depending on ActiveXexcrement isn''t viable, not to mention that almost nobody allows ActiveXcrement to run from the browser anyway.


这篇关于ASP-在客户端计算机中创建文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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