Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to get the client folder path not file path using asp.net (C#).
Posted
Comments
Srinivasan Vinayagam 15-Mar-13 6:38am    
Browser will not send client full path. It is achieved using javascript

Refer the below link
http://stackoverflow.com/questions/14153627/asp-net-get-file-path-on-clients-machine-any-possible-solutions-work-arounds
Bernhard Hiller 15-Mar-13 6:58am    
From my point of view, a possibility for getting to know a path on the client from a web site is a security hole. I hope it is not open in any browser...

You can't.
The browser does not provide that information for security reasons.
And besides, the client equipment may not have any idea what a "path" is - you cannot tell if it is a PC, MAC, or internet enabled fridge.
 
Share this answer
 
Quote:
AppDomain.CurrentDomain.BaseDirectory is probably the most useful for accessing files whose location is relative to the application install directory.
 
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