English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have made a website in asp.net using vb as base. now i am trying to access an image in another folder from a file in another folder, both in my parent website.
eg : file is /site/abc/a.aspx
image is /site/xyz/b.jpg

now it is not showing the image. it is displaying it from a file in the main site folder but not in any other folder. i tried the following but without success :
~/xyz/b.jpg
../xyz/b.jpg

Only way it is working is if i give the whole path, like /site/xyz/b.jpg but that i don't wanna give as my parent folder name may change. Any other way to get around this?
PLEASE HELP!!

2007-02-06 21:45:57 · 1 answers · asked by francisco 2 in Computers & Internet Programming & Design

1 answers

In order for ~/ to work, your root site directory in IIS must be configured as a .NET application, and the image code must be on the server-side. For example,

2007-02-06 22:21:22 · answer #1 · answered by Rex M 6 · 0 0

fedest.com, questions and answers