Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image in ASP.NET that does not show
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Image in ASP.NET that does not show
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01434121
Message ID:
01434121
Views:
108
Hi,

I am having a problem with a customer (there was another thread kind of related to this issue today) not seeing images on the ASP.NET page.

The image is a GIF file located in \images folder. The file is there. I have tried different ways to specify the image in the Header.ascx file - from IMG to ASP:IMAGE. But nothing seem to work. On my PC the page does display the image. I believe that the problem has something to do with the URL used for the page. The url is:
http://servername:900/MyMainPage.asx
When the customer right mouse click on the place on the page where the image supposed to be and then on Properties he sees the following in the address field of the property:

http://servername:900/images/MyImage.gif

So the property does show it but the image is not displayed. In place of the image there is this X image that browser shows if the image is missing.

Here are a couple ways I specified the image:
<asp:TableRow>
     <asp:TableCell VerticalAlign="Top" Width="88" RowSpan="2">
     <IMG src="~/images/MyImage.gif" /></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
     <asp:TableCell VerticalAlign="Top" Width="88" RowSpan="2">
     <IMG src="images/MyImage.gif" /></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
     <asp:TableCell VerticalAlign="Top" Width="88" RowSpan="2">
     <ASP:Image runat="server" id="myid" imageurl="~/images/MyImage.gif" /></asp:TableCell>
</asp:TableRow>
Any suggestions? TIA.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform