帮我做这个任务 [英] Help me to do this task

查看:76
本文介绍了帮我做这个任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够选择一个位置(文件夹&
文件名)以在我单击Web上的按钮时保存数据
形式.显然,我不能在
上使用保存对话框"控件 Web表单.

I would like to be able to select a location (folder &
file name) to save data when I click a button on a web
form. Obviously I can''t use a "Save Dialog" control on a
Web Form. How do I do this in asp.net?

推荐答案

我会做类似将其会话ID保存在cookie中,然后将会话ID用作名称的操作.文件.这样,他们根本不必为文件命名而烦恼.他们只需要单击保存按钮.
I would do something like save their session ID in a cookie, and use the session ID as the name of the file. That way, they don''t have to be bothered with naming a file at all. They merely have to click the Save button.


还要记住,您从服务器端代码写入的任何文件夹/文件名都将在服务器上.您不能使用ASP.NET写入客户端计算机.您可以使用客户端脚本,ActiveX等其他技术来写入客户端计算机上某些安全批准的区域(以查找隔离存储为例).
Also remember that any folder/filename you write to from your server side code will be on the server. You cannot use ASP.NET to write to the client machine. You can use other techniques like client side scripting, ActiveX etc. to write to certain security approved areas on the client machine (look up isolated storage for an example).


这篇关于帮我做这个任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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