Answers

Congratulations on designing your first web site; you've run into the exact same problem I did when I started out: paths.

Basically, the chances are you're using an absolute path to a file which the web server can't see. When developing/designing web sites, use a relative path.

Quick example:

Let's call the folder your web site files are saved to D:\My Site. This contains a directory named images, in which you have a logo file, say logo.gif.

Meanwhile, back in D:\My Site, you've got your main index.htm file which is referencing the image. When it's copied to the web server, the path it uses needs to be relative in order that the image file can still be seen.

Your image tag might look like:

<img src="D:\My Site\images\logo.gif" />

Instead, it needs to refer to the file in a relative (I keep using that word) manner, like this:

<img src="images/logo.gif" />

What this does is says, "look for a file called logo.gif, which is in a directory called images. I don't know exactly where that directory is, but it's in the same place as this file."

All replies

Congratulations on designing your first web site; you've run into the exact same problem I did when I started out: paths.

Basically, the chances are you're using an absolute path to a file which the web server can't see. When developing/designing web sites, use a relative path.

Quick example:

Let's call the folder your web site files are saved to D:\My Site. This contains a directory named images, in which you have a logo file, say logo.gif.

Meanwhile, back in D:\My Site, you've got your main index.htm file which is referencing the image. When it's copied to the web server, the path it uses needs to be relative in order that the image file can still be seen.

Your image tag might look like:

<img src="D:\My Site\images\logo.gif" />

Instead, it needs to refer to the file in a relative (I keep using that word) manner, like this:

<img src="images/logo.gif" />

What this does is says, "look for a file called logo.gif, which is in a directory called images. I don't know exactly where that directory is, but it's in the same place as this file."

Thanks Rob,Yes you were right it was the path! but not quite for the same reason as you experienced.

I checked the path in the HTML and it looked OK it was something like ImageUrl="~/App_Code/images/728x90.jpg" But it made me think why was the images folder under the App_code folder?I think i must have put it there but anyway i thought i'd move it to be directly under the website folder. I did this and changed the HTML to ImageUrl="~/images/728x90.jpg" and it all worked fine.