Author: Skalis | Posted on: 3/2/2010 6:11:17 AM | Views : 432

Hi,
I have a problem displaying images on my web pages. It doesn't matter if I insert the images using the toolbox, or if I try to display them manually by code. The problem is that VS displays them fine in design mode, but not in debugging (red cross).
 
The source code of the webpage gives me the following adress to the image:
<img id="ctl00_PH1_Image1" src="Images/red.gif" alt="boo" style="border-width:0px;" />
The code I used for siplaying the image is:
<asp:Image ID="Image1" runat="server" AlternateText="boo" ImageUrl="~\Images\red.gif" />
 
My project structure is as following:
Guardian (Project ...

Go to the complete details ...