Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Absolute vs Relative Path Problem
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00697815
Message ID:
00698059
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
You can share the folder in which all pic files are located and use the network path. For example,

\\WebServer\sharedfolder\mypic.bmp

You just need to replace c:\ with \\WebServer\ in your code.

>HI Jayesh,
>
>Thanks for taking the time to reply...
>
>My code is also in Page_Load(). I should say that it does display the graphic when running the app locally and when running the app from the web server from my development machine. In either case, it seems to be finding the .jpg file on my local development machine. The problem occurs when I go to another machine and try to run the app from the web server. Ive been told that I can move the .jpg files into the app folder and use relative paths but this is not desirable in this case. Also, the IDE allows you to specify that the path to the jpg file is absolute so I figured there is a way to do it through code.
>
>Todd
>
>
>>I think it is using absolute url. Doesn't it show the Image properly? I tried to do the same in the Page_Load() and it works.
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform