>>Hi,
>>
>>I have a few images specified in an ASP.NET page. Here is one example how the image is specified:
>>
>>
>><asp:TableRow>
>> <asp:TableCell VerticalAlign="Top" Width="88" RowSpan="2">
>> <IMG src="images\MyImage.gif"></asp:TableCell>
>></asp:TableRow>
>>
>>
>>The strange thing is when I look at the page in design mode in VS 2005 the line "src ..." has a squiggly red underline. And I point the mouse on this line it say that "File images\MyImage.gif is not found" Yet, the image is there, in the IMAGES folder. What could be wrong in the way I specify the image?
>>
>>TIA.
>
>Depending on where the page is that the image is to be displayed upon, you likely need to specify src="~/images/MyImage.gif" to get a relative path from the site root.instead.
I just made the change but the red squiggly underline is still there and the mouse message still says "File not found." But I will try to rebuild the project and see how it works. Thank you for your help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham