Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to delete a File/Folder of Hard Drive from .aspx/Client Side.What is coding in .cs File
Posted
Updated 18-Oct-11 1:22am
v2

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.
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900