Accessing files in a network
-
Hi all, I have a problem which is as follows I have a server located at remote location. I want to map a network drive on one of the client machines located at our premises through a form. The mapped path should be stored in a database table. When a user wants to access some files stored in the shared folder, my program will pick up the path stored in the table and accordingly fetch the requisite files from that location. I am using ASP.NET 2005 with C# as code-behind language. Let me tell you what I have done. On one of my forms I have used the file upload control which helps me in arriving at the destination folder. I also have the path appearing in the text box when I click on the Open button. I extract the directory path and send it to the database table. So far so good. When I come to my second form, I fetch the path from the table and put it as a parameter to an ODBCConnection object. This is where it gives me an error stating (unknown) Not a valid path to the server. Regards v1i9n6o7d
-
Hi all, I have a problem which is as follows I have a server located at remote location. I want to map a network drive on one of the client machines located at our premises through a form. The mapped path should be stored in a database table. When a user wants to access some files stored in the shared folder, my program will pick up the path stored in the table and accordingly fetch the requisite files from that location. I am using ASP.NET 2005 with C# as code-behind language. Let me tell you what I have done. On one of my forms I have used the file upload control which helps me in arriving at the destination folder. I also have the path appearing in the text box when I click on the Open button. I extract the directory path and send it to the database table. So far so good. When I come to my second form, I fetch the path from the table and put it as a parameter to an ODBCConnection object. This is where it gives me an error stating (unknown) Not a valid path to the server. Regards v1i9n6o7d
You have a file on a network path at a client. Your web server is located remotely from the site, and doesn't have access to the network drive - so when you try and access the drive from the web server, no joy. What you might want to do is provide the path as a link on the page. When the client clicks the link, they should be able to access the network drive.