来自asp.net的客户端计算机中特定文件夹的路径 [英] the path of a particular folder in client machine from asp.net

查看:109
本文介绍了来自asp.net的客户端计算机中特定文件夹的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从asp.net获取客户端计算机中特定文件夹的路径?

有人有答案吗?

我希望客户端计算机中的temp文件夹的路径保存文件并想要访问它(和

保存文件而不向客户端提供任何信息)是否有可能??????????

如果是,请给我解决方案........

How to get the path of a particular folder in client machine from asp.net?

Does anybody have the answer?

i want the path of temp folder in client machine to save file and want to access it (and

save file without giving any information to the client) is it possible???????????

if yes give me solution plz........

推荐答案

如果客户端的浏览器设置允许,则可以通过ActiveX进行操作,除非您正在为Intranet开发封闭式商店解决方案,否则不建议这样做.为什么任何人都应该允许Web应用程序在其计算机文件系统上找到任何特定的文件夹.这对我来说听起来很烦人,而且在我看来不会构成Web应用程序的可接受行为.
如果服务器对我隐藏了某些文件并不允许检查其文件夹,为什么我应该允许服务器在我的系统上执行此操作?

也许如果您详细说明了这种情况的需要,我会更好地理解,也许会找到一条可行的道路.

最好的问候,

-MRB
Might be possible via ActiveX, if the client''s browser settings allow for it, BUT unless you''re developing a closed shop solution for an intranet this not advisable. Why should anybody allow a web application to find any particular folder on their computers filesystem. That sounds very intrusive to me and would in my eyes not constitute acceptable behaviour for a web application.
If the server hides certain files from me and disallows inspection of it''s folders, why should I allow the server to do this on my system?

Maybe if you elaborate your need for this scenario I could better comprehend and maybe find this path a viable one.

Best Regards,

-MRB


您不能只是从ASP.Net的客户端框中获取路径".根本不可能.这就是所谓的安全性". Google是您的朋友.
You can''t just "get a path" from the client box in ASP.Net. It''s simply not possible. It''s called "security". Google is your friend.


希望它可以正常运行使用JavaScript查找文件 [ ^ ]
hope it will work Find files with JavaScript[^]


这篇关于来自asp.net的客户端计算机中特定文件夹的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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