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:
01434218
Views:
50
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform