Board index » Web Programming » Relitive or absolute path HELP
|
mee
|
Relitive or absolute path HELP
Web Programming265
Hi, For a home project I'm working on, I'm trying to get access to images within the web path, but the images don't show and I thing its because of the paths. Here is the dir structure: wwwroot App_Code UserControls ProductPictures Now, the problem is that I've created a User control thats in the UserControl directory. The images are in the ProductPictures dir. I can't seem to use: ProductPictures/imagename.gif or ../ProductPictures/imagename.gif I've also tried: ~/ProductPictures/imagename.gif none of these work, I think because the user control is not in the wwwroot dir. Would that be correct? If so, How can I get to that path from the UserControl dir. I'm hoping I don't have to use the absolute path because that would cause alot of changes before putting it on the web server. Any suggestions? Thanks for any suggestions. Michael - |
