Click here to Skip to main content
16,019,768 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi Team,

What I have Did

I have one Asp.net Project which Reads and extracts XML data on webpage.
I am able to read and extract data on webpage on my Local Computer by giving path.
However ,When I publish this online on my website I could not read path that I have given ( which was reading on local system )

What To DO
So I am trying to Upload that File by FileUpload Control so It will be read
I have to read that XML File on my online Website NOT on Local System.

So I want to Upload that File on webpage and should read all content .

Could you Please Help me How to read Uploaded File online ? ?

Regards
Rectus
Posted
Comments
Sergey Alexandrovich Kryukov 12-Oct-13 2:15am    
Not clear. What "path"? Anyway, you should understand that a file path one one host will make no sense on another one. I think it should be pretty obvious.
A code sample could help. There are too many ways to screw up things...
—SA
JoCodes 12-Oct-13 6:22am    
Post your code which uses the path to upload ...
JoCodes 12-Oct-13 6:23am    
Are you using Server.Mappath?

1 solution

Check the link which shows how to handle relative/absolute paths.

http://stackoverflow.com/questions/10479942/how-to-set-physical-path-to-upload-a-file-in-asp-net[^]

Hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900