单击按钮将文件下载到系统的特定部分 [英] download the file to particular part of the system while clicking the button

查看:68
本文介绍了单击按钮将文件下载到系统的特定部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个文本文件....在这种情况下,当我单击按钮事件时,所创建的文件应自动下载到下载文件中(无需向用户询问将其保存在何处的任何建议)?????? ?

i created one text file.... in this when i click the button event the created file should get downloaded in the downloads automaticaly(without asking any suggestion where to save like that to the user)???????

推荐答案

除非您使用ActiveX之类的客户端代码,否则无法强制下载文件的位置.您可以将文件发送给客户端,但浏览器会询问他们将文件保存在何处.

如果要强制执行某个位置并自动执行该操作,则必须创建一个客户端控件来处理此问题.
You can''t force where a file gets downloaded unless you use client side code, like ActiveX. You can send the file to the client but the browser will ask them where to save it.

If you want to force a location and do it automatically you have to create a client side control to handle this.


这篇关于单击按钮将文件下载到系统的特定部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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