joecool2005 Posted September 10, 2007 Share Posted September 10, 2007 Hi,Is it possible to access to temporary directory?How?Thxjoe Link to comment Share on other sites More sharing options...
aspnetguy Posted September 10, 2007 Share Posted September 10, 2007 You mean with code? Is this a desktop or web application? Link to comment Share on other sites More sharing options...
joecool2005 Posted September 10, 2007 Author Share Posted September 10, 2007 Yes with code for web application.I want to get the temp directory of the user in order to save the file on the client side.I know I can use this Response.Write(System.IO.Path.GetTempPath) But it showed the temp directory for server side Link to comment Share on other sites More sharing options...
aspnetguy Posted September 10, 2007 Share Posted September 10, 2007 I am not sure you can do this easily in a web app. Take a look here http://dn.codegear.com/article/32384Although I think that mostly applies for desktop apps. Link to comment Share on other sites More sharing options...
joecool2005 Posted September 11, 2007 Author Share Posted September 11, 2007 Hi,When I do this Response.Write(System.IO.Path.GetTempPath) why is showing temp directory on the server side not on the client side?ThxJoe Link to comment Share on other sites More sharing options...
aspnetguy Posted September 11, 2007 Share Posted September 11, 2007 Because it is server side code. You can't just randomly scan the user's harddrive for obvious security reasons. I am not sure how to do this in a web app. It is very easy in desktop apps. You will probably have to write a desktop plugin (COM or ActiveX) and execute it from your web app. Link to comment Share on other sites More sharing options...
Skemcin Posted September 12, 2007 Share Posted September 12, 2007 You won't be able to write anything to any location on the client side unless you use ActiveX controls. Everything else will be prompted by the user - you will not be able to specify a location to store something. If this were the case, viruses would be even easier to inject into someone's PC. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.