我想从客户端删除硬盘的文件/文件夹 [英] I want to delete a File/Folder of Hard Drive from Client Side

查看:96
本文介绍了我想从客户端删除硬盘的文件/文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从.aspx/客户端删除硬盘驱动器的文件/文件夹..cs文件中的代码是什么

I want to delete a File/Folder of Hard Drive from .aspx/Client Side.What is coding in .cs File

推荐答案

您无法访问服务器客户端的文件系统-这将是一个巨大的安全漏洞.

您可以在服务器上编写一个客户端可以调用的方法,该方法可以访问服务器文件系统.
You cannot access the server''s filesystem from the client - that would be a huge security hole.

You can write a method on the server that the client can call, and that can access the server filesystem.


正如Nicholas Butler所说,这是安全漏洞,也是不可能的,但是它们是这样做的一种方法,您必须使用activeX对象,然后使用Web在客户端系统上安装它,然后您可以使用activeX对象删除任何想要的内容.
As Nicholas Butler said it is security hole and it is not possible as well, but their is one way of doing this you have to use activeX object, install it at client system using your web and then you can delete what ever you want by using your activeX object.


这篇关于我想从客户端删除硬盘的文件/文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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