Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image in ASP.NET that does not show
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01434121
Message ID:
01434129
Vues:
27
>>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..

I thought that the default account is NETWORK SERVICE and the admin did add this account with FULL permission to the application folder. But still not images are showing.

Thank you for your suggestion.
"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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform