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.
--
"WM Chung" <WM*****@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
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