Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image in ASP.NET that does not show
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01434121
Message ID:
01434125
Views:
35
>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.

Sounds more like a permissions issue in the images folder. Make sure the account used by the webserver has rights..
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform