Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to create directory at client machine using java script in asp.net,Directory must be created automatically on page load but without prompting any permission..how to achieve this task..
Posted
Comments
willempipi 5-Nov-12 8:37am    
If this would be possible, it would be a really serius security problem.

1 solution

The answer is, you can't. ASP.net code runs on the server and therefore has little to no bearing on the client. Javascript IS a client-side technology, but it runs in a browser sandbox which allows no access to the local machine other than cookies and maybe a few offline storage features in HTML5.

There might be browser vulnerabilities that you can exploit to achieve what you want to do, but a) it's naughty and b) you can't rely on vulnerabilities to hang around forever - they will eventually get fixed.
 
Share this answer
 
Comments
Prashant Sonavane 8-Nov-12 2:22am    
Ok. Then any other way to do..Actually my process flow goes in this way..
My app is in asp.net and silverlight. In one page of asp.net on page load i want to transfer a zip file from server to client machine at some dir location.then redirect to other page which contains silverlight app.so on startup of silverlight app i want to extract zip file so that it possible to read content of zip file in silverlight app.Please provide some solution.

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