Problem occured when i placed my working folder in the server

G

Guest

hi all,
it's me again. i'm using ASP.NET Web Application, using a "File Field"component under HTML tab and i do a right click on the component and select "Run As Server Control". This was done because i wanted the user to browse a specific file in their own directory.

Everything was working fine when i was working on my local PC.......The problem come when i placed the folder to the SERVER. Mapping to the server(http:12:12:12.12/kelly/index.aspx), when i click on the File1's button to browse a file in my client PC, the error show "could find file in c:\abc.txt".
Problem occured when i placed my working folder in the server
May i know how to solve this problem?

dim Filename as string
Filename=File1.value
Process(Filename)
 
P

Peter van der Goes

Kelly said:
hi all,
it's me again. i'm using ASP.NET Web Application, using a "File
Field"component under HTML tab and i do a right click on the component and
select "Run As Server Control". This was done because i wanted the user to
browse a specific file in their own directory.
Everything was working fine when i was working on my local PC.......The
problem come when i placed the folder to the SERVER. Mapping to the
server(http:12:12:12.12/kelly/index.aspx), when i click on the File1's
button to browse a file in my client PC, the error show "could find file in
c:\abc.txt".
Problem occured when i placed my working folder in the server
May i know how to solve this problem?

dim Filename as string
Filename=File1.value
Process(Filename)
I see you've posted this same question in multiple newsgroups. If you need
to post in multiple groups, please learn to cross-post (place multiple group
names in the newsgroups field of one message), rather than multi-posting
(sending the same message to groups, one at a time). Cross-posting allows a
response posted in one group to automatically appear in all, thus
eliminating redundant responses. That said, cross-posting should be limited
to two or three groups at most.
As to your question:
Is the file you want to access stored in the c:\ root on the server, or is
that where it was on your development PC? Now that your application is on
the server, the local path (c:\abc.txt) applies to the server, not the
client. A file on a remote PC will have to be accessed as such.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top