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:
01434218
Vues:
51
This message has been marked as the solution to the initial question of the thread.
>
>http://servername:900/images/MyImage.gif

Do you see the image if you paste this URL directly into the address bar of the brower?

I'd suggest downloading Fiddler from:

http://www.fiddler2.com

then hit that page. You should see a status code returned for the image. If it's something like 404 then the pathing to the image isn't correct (as far as the server is concerned). If it's something like 401/403 then it's a permission issue.

>
><asp:TableRow>
>     <asp:TableCell VerticalAlign="Top" Width="88" RowSpan="2">
>     <IMG src="~/images/MyImage.gif" /></asp:TableCell>
></asp:TableRow>
>
The tilde ~ shortcut is only available with server side controls, not normal HTML tags. It's a shortcut for the virtual root of the web application (it basically uses HttpRuntime.AppDomainAppVirtualPath to retrieve the path).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform