Open file in local client machine

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

My dotnet application configuration is that the client, Web server and
database all reside in 3 different computers. There is a function which can
browse a file and read in the contents. When it is run by Internet explorer
in the client machine, it can browse the file path in the client machine.
However, when the program attempt to read in the file content, there is run
time error. I suspect the program try to read the file in the Web server
which do not has such file.

There is no problem if the client and web server reside in the same computer.

I cannot think of any way to solve the problem at this moment. If you know
of any way, I would be very grateful if you can tell me.

Thanks.
W.M. Chung
 
You can't. This is intentional. We don't want web sites surfing our hard
drives.

Given what you've said, I'm guessing that you have an ASP.Net application
and the client is IE.

IE allows you to select a file for upload. The client can upload the file
to the server. The server can store it on the local hard drive or in a
database. Then the server can do whatever you want with it.

However, the client cannot.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Thanks.

Can anyone give some hint on how to trigger the uploading in client and
trigger the processing in the Web server after it is received ? Is there any
sample code on this ?
 
Google on "upload file web .net" and you'll get useful hits like these...

http://www.4guysfromrolla.com/webtech/091201-1.shtml
http://www.ondotnet.com/pub/a/dotnet/2002/04/01/asp.html
http://www.developer.com/net/asp/article.php/3097661

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top